]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: don't bother calling xfs_rmap_finish_one_cleanup in xfs_rmap_finish_one
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jul 2024 21:21:40 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 1 Aug 2024 00:07:27 +0000 (17:07 -0700)
commitfeda5bbf264efc856e738a9723f452685367373d
treea5ba7ebb43cd8f01f36981bc3e27af3ce98aa9b7
parent3061671787ecf13ac2a228015d27e8871cc5d9ac
xfs: don't bother calling xfs_rmap_finish_one_cleanup in xfs_rmap_finish_one

In xfs_rmap_finish_one we known the cursor is non-zero when calling
xfs_rmap_finish_one_cleanup and we pass a 0 error variable.  This means
xfs_rmap_finish_one_cleanup is just doing a xfs_btree_del_cursor.

Open code that and move xfs_rmap_finish_one_cleanup to
fs/xfs/xfs_rmap_item.c.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: minor porting changes]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/defer_item.c
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h