aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2020-12-16 16:18:46 +0000
committerDavid Sterba <[email protected]>2021-02-08 21:58:50 +0000
commit0d73a11c62642a25b688d09ae04b3b1f1b58ebb9 (patch)
tree5aa56b156fbef97a6e0efab42bb4f1f0b74ff413 /fs/btrfs/dev-replace.c
parentbtrfs: noinline btrfs_should_cancel_balance (diff)
downloadkernel-0d73a11c62642a25b688d09ae04b3b1f1b58ebb9.tar.gz
kernel-0d73a11c62642a25b688d09ae04b3b1f1b58ebb9.zip
btrfs: ref-verify: pass down tree block level when building refs
I noticed that sometimes I would have the wrong level printed out with ref-verify while testing some error injection related problems. This is because we only get the level from the main extent item, but our references could go off the current leaf into another, and at that point we lose our level. Fix this by keeping track of the last tree block level that we found, the same way we keep track of our bytenr and num_bytes, in case we happen to wander into another leaf while still processing the references for a bytenr. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions