diff options
author | Christoph Hellwig <hch@lst.de> | 2023-10-11 07:16:26 +0200 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2023-10-23 11:06:54 +0530 |
commit | 35dc55b9e80cb9ec4bcb969302000b002b2ed850 (patch) | |
tree | b6494e0ecbcdd14cf6874311a6830fcc20e306e3 /drivers/fpga/versal-fpga.c | |
parent | 2b99e410b28f5a75ae417e6389e767c7745d6fce (diff) |
xfs: handle nimaps=0 from xfs_bmapi_write in xfs_alloc_file_space
If xfs_bmapi_write finds a delalloc extent at the requested range, it
tries to convert the entire delalloc extent to a real allocation.
But if the allocator cannot find a single free extent large enough to
cover the start block of the requested range, xfs_bmapi_write will
return 0 but leave *nimaps set to 0.
In that case we simply need to keep looping with the same startoffset_fsb
so that one of the following allocations will eventually reach the
requested range.
Note that this could affect any caller of xfs_bmapi_write that covers
an existing delayed allocation. As far as I can tell we do not have
any other such caller, though - the regular writeback path uses
xfs_bmapi_convert_delalloc to convert delayed allocations to real ones,
and direct I/O invalidates the page cache first.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'drivers/fpga/versal-fpga.c')
0 files changed, 0 insertions, 0 deletions