]> www.infradead.org Git - users/hch/xfs.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>
Tue, 5 Nov 2024 08:29:51 +0000 (09:29 +0100)
commit72596bad4df5614c06c86e63ceee36777459ab6c
treeace3b041d757861c01200b5d8be7a7c47ffc0a39
parente8c3af74d521bdc12d6d460cbfce611be5429ec7
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
blags 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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_reflink.c