]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: don't bother calling xfs_refcount_finish_one_cleanup in xfs_refcount_finish_one
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:42 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jul 2024 22:37:07 +0000 (15:37 -0700)
commitcee75f278061d38ee75b62bf8d3b1727a25b4606
treece3a5adc55a47bb0bdfd60c2380afcef6369ccb7
parent8d45003b9d0cb7c8250f4ab8c507a44a46d02e60
xfs: don't bother calling xfs_refcount_finish_one_cleanup in xfs_refcount_finish_one

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