]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: introduce dedicated helper to scrub simple-stripe based range
authorQu Wenruo <wqu@suse.com>
Fri, 11 Mar 2022 07:38:44 +0000 (15:38 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:30 +0000 (17:17 +0200)
commitdc4beb31b5968c120e6f06d6be81d75f27286434
treeacea1fd80b6f4bf3e57934109b8f085e1f3fb39f
parent981aa4edf6d95ee95d61ab28ddda686758ff4d7a
btrfs: scrub: introduce dedicated helper to scrub simple-stripe based range

The new entrance will iterate through each data stripe which belongs to
the target device.

And since inside each data stripe, RAID0 is just SINGLE, while RAID10 is
just RAID1, we can reuse scrub_simple_mirror() to do the scrub properly.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c