]> 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>
Wed, 26 Feb 2025 01:19:34 +0000 (17:19 -0800)
commite7e224264b984fc6145b9f5095e0d73d247ac29e
tree4e270730977ff50901208ea39189346d158857c2
parent8596abd487ae6cfcb8125f9afe15a54dacecfc44
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