]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: reuse xfs_refcount_update_cancel_item
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:13:03 +0000 (21:13 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 1 Aug 2024 00:09:56 +0000 (17:09 -0700)
commitd565c48352f07b10abb229ecae7ef92bba6b7961
tree2936275b5391d6978d5ea894421ae12f04c1cc2e
parentcc49d050ec10e25eff603d1627980e6d5e314eb6
xfs: reuse xfs_refcount_update_cancel_item

Reuse xfs_refcount_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_refcount_item.c