summaryrefslogtreecommitdiff
path: root/net/dcb
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-03-11 15:38:45 +0800
committerDavid Sterba <dsterba@suse.com>2022-05-16 17:17:30 +0200
commite430c4287ebdafef961948c31c0b8c18dae7ee5e (patch)
treee762667581436f7ba0e4dbcf7cca7a21640e77dd /net/dcb
parent8557635ed2b04bd54c26b203a3ae43c0e5d6f5af (diff)
btrfs: scrub: cleanup the non-RAID56 branches in scrub_stripe()
Since we have moved all other profiles handling into their own functions, now the main body of scrub_stripe() is just handling RAID56 profiles. There is no need to address other profiles in the main loop of scrub_stripe(), so we can remove those dead branches. Since we're here, also slightly change the timing of initialization of variables like @offset, @increment and @logical. Especially for @logical, we don't really need to initialize it for btrfs_extent_root()/btrfs_csum_root(), we can use bg->start for that purpose. Now those variables are only initialize for RAID56 branches. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'net/dcb')
0 files changed, 0 insertions, 0 deletions