]> 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>
Mon, 14 Apr 2025 05:25:38 +0000 (07:25 +0200)
commitd59eb289f717528824ce4daa33f51706b4da037d
treeb44dcbdeeb7a14335d405b4f3f77c08fa708cd15
parenteb64e9e8cbac7a31d0b35aa9c9c656df5df2af3b
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