xfs: fold xfs_refcountbt_init_common into xfs_refcountbt_init_cursor
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:39 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:39 +0000 (12:39 -0800)
commit4f2dc69e4bcb4b3bfaea0a96ac6424b0ed998172
treeb0577d2e8e34281fb983d5da18db7c05cccb1658
parent6234dee7e6f58676379f3a2d8b0629a6e9a427fd
xfs: fold xfs_refcountbt_init_common into xfs_refcountbt_init_cursor

Make the levels initialization in xfs_refcountbt_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_refcount_btree.c