summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/bmap_repair.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-22 21:39:44 +0100
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 21:39:44 +0100
commit802f91f7b1d535ac975e2d696bf5b5dea82816e7 (patch)
tree7685f1017c5f7af0d48074e17fea83e31fa136dc /fs/xfs/scrub/bmap_repair.c
parentxfs: make staging file forks explicit (diff)
downloadlinux-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