• Qu Wenruo's avatar
    btrfs: scrub: remove scrub_bio structure · 13a62fd9
    Qu Wenruo authored
    Since scrub path has been fully moved to scrub_stripe based facilities,
    no more scrub_bio would be submitted.
    Thus we can remove it completely, this involves:
    
    - SCRUB_SECTORS_PER_BIO macro
    - SCRUB_BIOS_PER_SCTX macro
    - SCRUB_MAX_PAGES macro
    - BTRFS_MAX_MIRRORS macro
    - scrub_bio structure
    - scrub_ctx::bios member
    - scrub_ctx::curr member
    - scrub_ctx::bios_in_flight member
    - scrub_ctx::workers_pending member
    - scrub_ctx::list_lock member
    - scrub_ctx::list_wait member
    
    - function scrub_bio_end_io_worker()
    - function scrub_pending_bio_inc()
    - function scrub_pending_bio_dec()
    - function scrub_throttle()
    - function scrub_submit()
    
    - function scrub_find_csum()
    - function drop_csum_range()
    
    - Some unnecessary flush and scrub pauses
    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>
    13a62fd9
scrub.h 591 Bytes