xfs: reuse xfs_bmap_update_cancel_item
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:20 +0000 (12:44 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:20 +0000 (12:44 -0800)
commit5d3d0a6ad287746017b198a153d2de81ecc7491e
tree4a4b517343f9da2876dc2c49f56e5b72b9064388
parentde47e4c9ad2de1a9e3ce9a460b49a77bee1c3c9b
xfs: reuse xfs_bmap_update_cancel_item

Reuse xfs_bmap_update_cancel_item to put the AG/RTG and free the item in
a few places that currently open code the logic.

Inspired-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_item.c