xfs: fold xfs_allocbt_init_common into xfs_allocbt_init_cursor
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:36 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:36 +0000 (12:39 -0800)
commitfb518f8eeb90197624b21a3429e57b6a65bff7bb
treef1a2b10d134ac512bc4780bc221ce4efb772a440
parent2b9e7f2668c540f18afd66a053ea78f3a629f8e2
xfs: fold xfs_allocbt_init_common into xfs_allocbt_init_cursor

Make the levels initialization in xfs_allocbt_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_alloc_btree.c