• Qu Wenruo's avatar
    btrfs: scrub: remove impossible sanity checks · fc65bb53
    Qu Wenruo authored
    There are several sanity checks which are no longer possible to trigger
    inside btrfs_scrub_dev().
    
    Since we have mount time check against super block nodesize/sectorsize,
    and our fixed macro is hardcoded to handle even the worst combination.
    
    Thus those sanity checks are no longer needed, can be easily removed.
    
    But this patch still uses some ASSERT()s as a safe net just in case we
    change some features in the future to trigger those impossible
    combinations.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    fc65bb53
scrub.c 120 KB