• Q
    btrfs: scrub: remove impossible sanity checks · fc65bb53
    Qu Wenruo 提交于
    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: NQu Wenruo <wqu@suse.com>
    Reviewed-by: NDavid Sterba <dsterba@suse.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    fc65bb53
scrub.c 119.8 KB