Re: [PATCH] xfs: clean code for setting bma length in xfs_bmapi_write

2020-12-12 Thread Gao Xiang
On Sat, Dec 12, 2020 at 08:48:17PM +0800, chenle...@gmail.com wrote: > From: Lei Chen > > xfs_bmapi_write may need alloc blocks when it encounters a hole > or delay extent. When setting bma.length, it does not need comparing > MAXEXTLEN and the length that the caller wants, because > xfs_bmapi_al

[PATCH] xfs: clean code for setting bma length in xfs_bmapi_write

2020-12-12 Thread chenlei0x
From: Lei Chen xfs_bmapi_write may need alloc blocks when it encounters a hole or delay extent. When setting bma.length, it does not need comparing MAXEXTLEN and the length that the caller wants, because xfs_bmapi_allocate will handle every thing properly for bma.length. Signed-off-by: Lei Chen