btrfs: Bypass unrelated items before accessing its contents in scrub
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 22 Jul 2015 05:14:48 +0000 (13:14 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:12 +0000 (07:07 -0700)
commitd7cad2389560f3249435ac928bc13e9408ae467e
tree1c14e07f499eac31c20fd3467b36a6722e5d8c69
parentfe8cf654b1ccf7f0b49cc0de9e6ad8a56529e384
btrfs: Bypass unrelated items before accessing its contents in scrub

When we access extent_root in scrub_stripe() and
scrub_raid56_parity(), we need bypass unrelated tree item firstly
before using its contents to do other condition.

It is not a bug fix, only making code sequence in logic.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c