xfs: fold xfs_rmapbt_init_common into xfs_rmapbt_init_cursor
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:41 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:41 +0000 (12:39 -0800)
commitc49a4b2f0ef0ac5daee5c2a3cfd2b537345c34eb
tree39462d5719b2b165c8ec55a1e3b418a6dfb56777
parenta5c2194406f322e91b90fb813128541a9b4fed6a
xfs: fold xfs_rmapbt_init_common into xfs_rmapbt_init_cursor

Make the levels initialization in xfs_rmapbt_init_cursor conditional
and merge the two helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_rmap_btree.c