]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: don't bother calling xfs_rmap_finish_one_cleanup in xfs_rmap_finish_one
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:19:48 +0000 (18:19 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commit1d056f92e5a04f82814521dd6b266b2a776babb4
treee783d542bc04296186af0d7cf1bdb5b1a530fa79
parent4b7979f5f4b9bd7a8c975f4d8857d12388efe855
xfs: don't bother calling xfs_rmap_finish_one_cleanup in xfs_rmap_finish_one

Source kernel commit: 8363b4361997044ecb99880a1a9bfdebf9145eed

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