diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 21:39:44 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 21:39:44 +0100 |
commit | 802f91f7b1d535ac975e2d696bf5b5dea82816e7 (patch) | |
tree | 7685f1017c5f7af0d48074e17fea83e31fa136dc /fs/xfs/scrub/bmap_repair.c | |
parent | xfs: make staging file forks explicit (diff) | |
download | linux-802f91f7b1d535ac975e2d696bf5b5dea82816e7.tar.xz linux-802f91f7b1d535ac975e2d696bf5b5dea82816e7.zip |
xfs: fold xfs_bmbt_init_common into xfs_bmbt_init_cursor
Make the levels initialization in xfs_bmbt_init_cursor conditional
and merge the two helpers.
This requires the fakeroot case to now pass a -1 whichfork directly
into xfs_bmbt_init_cursor, and some special casing for that, but
at least this scheme to deal with the fake btree root is handled and
documented in once place now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: tidy up a multline ternary]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions