]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: don't bother calling xfs_refcount_finish_one_cleanup in xfs_refcount_finish_one
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:07 +0000 (11:37 -0700)
commitbac3f784925299b5e69a857e7e03e59c88aa14be
treedc2cdef3d8d8f26c240dd0eaf656f06221327d05
parent8aef79928b3ddd8c10a3235f982933addc15a977
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount.h
fs/xfs/xfs_refcount_item.c