]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: support XFS_BMAPI_REMAP in xfs_bmap_del_extent_delay
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Sep 2024 04:58:17 +0000 (07:58 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:44 +0000 (08:16 -0700)
commitf42c652434de5e26e02798bf6a0c2a4a8627196b
tree004f0f705c0b4d6aa5e969bb3feb4aecef477195
parent6fff175279e4682b4eff25182808e0b1c90347cf
xfs: support XFS_BMAPI_REMAP in xfs_bmap_del_extent_delay

The zone allocator wants to be able to remove a delalloc mapping in the
COW fork while keeping the block reservation.  To support that pass the
flags argument down to xfs_bmap_del_extent_delay and support the
XFS_BMAPI_REMAP flag to keep the reservation.

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_bmap_util.c
fs/xfs/xfs_reflink.c