]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: reuse xfs_refcount_update_cancel_item
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:21:53 +0000 (18:21 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commit8c9f8f6c8c43488327ad8b3111fd912821c5ddb2
tree577bc2e391605ebcffd0319d390df71093a3c17b
parent62ae47e4ae8b680286bb580762515f6b32389001
xfs: reuse xfs_refcount_update_cancel_item

Source kernel commit: 8aef79928b3ddd8c10a3235f982933addc15a977

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>
libxfs/defer_item.c