]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: support XFS_BMAPI_REMAP in xfs_bmap_del_extent_delay
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:08:31 +0000 (09:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:08:31 +0000 (09:08 +0200)
commit049769ebab873c25614f93d06dc4e6805d77c53c
tree6015b5eaa3d112eb6ad9a133db83cfd75f1360dd
parent97791010b0cc2873eb58ac425dc45f40eb631835
xfs: support XFS_BMAPI_REMAP in xfs_bmap_del_extent_delay

Source kernel commit: f42c652434de5e26e02798bf6a0c2a4a8627196b

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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h