]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: reuse xfs_refcount_update_cancel_item
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:23:10 +0000 (11:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:37:06 +0000 (11:37 -0700)
commit8aef79928b3ddd8c10a3235f982933addc15a977
tree405e4a71c52a9bcad86dbe8449a7dbb7e6b19cbf
parent0e9254861f980bd60a58b7c2b57ba0414c038409
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