• Qu Wenruo's avatar
    btrfs: scrub: introduce dedicated helper to scrub simple-mirror based range · 09022b14
    Qu Wenruo authored
    The new helper, scrub_simple_mirror(), will scrub all extents inside a
    range which only has simple mirror based duplication.
    
    This covers every range of SINGLE/DUP/RAID1/RAID1C*, and inside each
    data stripe for RAID0/RAID10.
    
    Currently we will use this function to scrub SINGLE/DUP/RAID1/RAID1C*
    profiles.  As one can see, the new entrance for those simple-mirror
    based profiles can be small enough (with comments, just reach 100
    lines).
    
    This function will be the basis for the incoming scrub refactor.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    09022b14
scrub.c 123 KB