xfs: move xfs_bmapi_reserve_delalloc to xfs_iomap.c
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Nov 2024 09:22:50 +0000 (10:22 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:44 +0000 (08:16 -0700)
commit7c879c8275c0505c551f0fc6c152299c8d11f756
tree5fb6ccc0646d1b083ddd424c13f7648ecfaba358
parent012482b3308a49a84c2a7df08218dd4ad081e1da
xfs: move xfs_bmapi_reserve_delalloc to xfs_iomap.c

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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_iomap.c