btrfs: scrub: cleanup scrub_raid56_parity() using find_first_extent_item() helper
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: refactor scrub_raid56_parity()fs/ | +166 | 2 replies | |
| 2/2 | btrfs: use find_first_extent_item() to replace the open-coded extent item searchfs/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] btrfs: scrub: cleanup scrub_raid56_parity() using find_first_extent_item() helper
This patchset is depedent on previous patchset titled "btrfs: refactor scrub entrances for each profile", and can be fetched from github:
https://github.com/adam900710/linux/tree/refactor_scrub
This patchset is doing the remaining cleanup for extent item iteration of scrub_raid56_parity().
As that function is mostly a variant of scrub_simple_mirror() with different target operations.
This patchset will refactor a double while loops into a single while loop with a helper, then cleanup the open-coded extent item lookup code.
With this patchset, all extent item iteration code will share the new find_first_extent_item() based solution.
Qu Wenruo (2):
btrfs: refactor scrub_raid56_parity()
btrfs: use find_first_extent_item() to replace the open-coded extent
item search
fs/btrfs/scrub.c | 299 +++++++++++++++++++---------------------------- 1 file changed, 118 insertions(+), 181 deletions(-)
Signature · 1 line
2.34.1