Skip to content

btrfs: scrub: cleanup scrub_raid56_parity() using find_first_extent_item() helper

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: refactor scrub_raid56_parity()fs/btrfs/scrub.c+166 -1812 replies
2/2btrfs: use find_first_extent_item() to replace the open-coded extent item searchfs/btrfs/scrub.c+26 -740 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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