xfs: make full use of xfs_btree_stage_ifakeroot in xfs_bmbt_stage_cursor
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:43 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:43 +0000 (12:39 -0800)
commit579d7022d1afea8f4475d1750224ec0b652febee
tree8d9f3701d91a0e8bfb42936a2384b852721ab94e
parent1317813290be04bc37196c4adf457712238c7faa
xfs: make full use of xfs_btree_stage_ifakeroot in xfs_bmbt_stage_cursor

Remove the duplicate cur->bc_nlevels assignment in xfs_bmbt_stage_cursor,
and move the cur->bc_ino.forksize assignment into
xfs_btree_stage_ifakeroot as it is part of setting up the fake btree
root.

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_bmap_btree.c
fs/xfs/libxfs/xfs_btree_staging.c