]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: pass the actual offset and len to allocate to xfs_bmapi_allocate
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 23:22:55 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:04 +0000 (17:01 -0700)
commit3c9133f8a041089dbdcd67f3d954ba301234dc4f
tree50bec0ca6b28a74b58af1428b42e4d5e6c6638a8
parentae85a9c8c190ea0ab48ee9777c5df91b4449d25d
xfs: pass the actual offset and len to allocate to xfs_bmapi_allocate

Source kernel commit: 2a9b99d45be0981536f6d3faf40ae3f58febdd49

xfs_bmapi_allocate currently overwrites offset and len when converting
delayed allocations, and duplicates the length cap done for non-delalloc
allocations.  Move all that logic into the callers to avoid duplication
and to make the calling conventions more obvious.

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>
libxfs/xfs_bmap.c