]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: don't bother calling xfs_refcount_finish_one_cleanup in xfs_refcount_finish_one
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:22:08 +0000 (18:22 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commita344868860be20633e27c1a8d0034bd6ab935330
tree288f895837851b70166c44d351c3c2cf81a8c3d9
parent8c9f8f6c8c43488327ad8b3111fd912821c5ddb2
xfs: don't bother calling xfs_refcount_finish_one_cleanup in xfs_refcount_finish_one

Source kernel commit: bac3f784925299b5e69a857e7e03e59c88aa14be

In xfs_refcount_finish_one we know the cursor is non-zero when calling
xfs_refcount_finish_one_cleanup and we pass a 0 error variable.  This
means xfs_refcount_finish_one_cleanup is just doing a
xfs_btree_del_cursor.

Open code that and move xfs_refcount_finish_one_cleanup to
fs/xfs/xfs_refcount_item.c.

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