xfs: fold xfs_inobt_init_common into xfs_inobt_init_cursor
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:38 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:38 +0000 (12:39 -0800)
commitf6c98d921a9e5b753ac1a35d540a6487ee111a33
tree6097f3e5abb16d540114419f73f2cd74a1e3542d
parent91796b2eef8bd725873bec326a7be830a68a11ff
xfs: fold xfs_inobt_init_common into xfs_inobt_init_cursor

Make the levels initialization in xfs_inobt_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_ialloc_btree.c