• Qu Wenruo's avatar
    btrfs: raid56: switch scrub path to use a single function · 6bfd0133
    Qu Wenruo authored
    This switch involves the following changes:
    
    - Make finish_parity_scrub() only to submit the write bios
      It will no longer call rbio_orig_end_io(), and now it will
      return error.
    
    - Add a new helper, recover_scrub_rbio(), to handle recovery
      It's just doing extra scrub related checks, and then call
      recover_sectors().
    
    - Rename raid56_parity_scrub_stripe() to scrub_rbio()
    - Rename scrub_parity_work() to scrub_rbio_work_locked()
      To follow the existing naming scheme.
    
    - Delete unused functions
      Including:
      * finish_rmw()
      * raid_write_end_io()
      * raid56_bio_end_io()
      * __raid_recover_end_io()
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    6bfd0133
raid56.c 68.1 KB