]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: move xfs_bmapi_reserve_delalloc to xfs_iomap.c
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:35:50 +0000 (07:35 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:57 +0000 (18:09 +0200)
commitb5e9bf4ec26cfa327f6584c6358a21688717d0a9
treeec3401a4327805b5bd6fadcc0f25dae166029801
parent9b705e1a55aa0d87029cd03c9a1c680a96ab5b50
xfs: move xfs_bmapi_reserve_delalloc to xfs_iomap.c

Source kernel commit: 7c879c8275c0505c551f0fc6c152299c8d11f756

Delalloc reservations are not supported in userspace, and thus it doesn't
make sense to share this helper with xfsprogs.c.  Move it to xfs_iomap.c
toward the two callers.

Note that there rest of the delalloc handling should probably eventually
also move out of xfs_bmap.c, but that will require a bit more surgery.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h