]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: don't bother calling xfs_rmap_finish_one_cleanup in xfs_rmap_finish_one
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Jul 2024 18:23:02 +0000 (11:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:37:04 +0000 (11:37 -0700)
commit8363b4361997044ecb99880a1a9bfdebf9145eed
tree0353623606427e7ba37922d92a28e86900a529d6
parent37f9d1db03ba0511403c5d25ba0baaddf5208ba7
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>
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/libxfs/xfs_rmap.h
fs/xfs/xfs_rmap_item.c