Skip to content

Commit

Permalink
btrfs: scrub: switch scrub_simple_mirror() to scrub_stripe infrastruc…
Browse files Browse the repository at this point in the history
…ture

Switch scrub_simple_mirror() to the new scrub_stripe infrastructure.

Since scrub_simple_mirror() is the core part of scrub (only RAID56
P/Q stripes don't utilize it), we can get rid of a big chunk of code,
mostly scrub_extent(), scrub_sectors() and directly called functions.

There is a functionality change:

- Scrub speed throttle now only affects read on the scrubbing device
  Writes (for repair and replace), and reads from other mirrors won't
  be limited by the set limits.

Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
adam900710 authored and kdave committed Apr 17, 2023
1 parent 5476539 commit e02ee89
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 474 deletions.
Loading

0 comments on commit e02ee89

Please sign in to comment.