diff options
author | Christoph Hellwig <hch@lst.de> | 2024-09-10 07:58:17 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2025-03-03 08:16:44 -0700 |
commit | f42c652434de5e26e02798bf6a0c2a4a8627196b (patch) | |
tree | 004f0f705c0b4d6aa5e969bb3feb4aecef477195 /fs/xfs/xfs_reflink.c | |
parent | 6fff175279e4682b4eff25182808e0b1c90347cf (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index fd65e5d7994a..b977930c4ebc 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -651,7 +651,7 @@ xfs_reflink_cancel_cow_blocks( if (isnullstartblock(del.br_startblock)) { xfs_bmap_del_extent_delay(ip, XFS_COW_FORK, &icur, &got, - &del); + &del, 0); } else if (del.br_state == XFS_EXT_UNWRITTEN || cancel_real) { ASSERT((*tpp)->t_highest_agno == NULLAGNUMBER); |