Skip to content

btrfs: prepare raid56 and scrub to support bs > ps cases

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: prepare raid56 to support bs > ps casesfs/btrfs/misc.h fs/btrfs/raid56.c fs/btrfs/raid56.h+115 -930 replies
2/2btrfs: prepare scrub to support bs > ps casesfs/btrfs/raid56.c fs/btrfs/raid56.h fs/btrfs/scrub.c+35 -350 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: prepare raid56 and scrub to support bs > ps cases

After the previous compression bs > ps preparation, this series focus on raid56 and scrub.

Both raid56 and scrub are using a page array storing their stripes.

Thankfully both are already using physical memory addresses for checksum calculation, thus there are no internal code to do the checksum handling.

Just convert the involved arraies (and some RAID56 internal page related members) to folio arraies will handle most thing properly.

Now the remaining code is mostly encoded write, which shares some infrastructure with send, which makes the conversion more complex than I thought.

Qu Wenruo (2):
btrfs: prepare raid56 to support bs > ps cases
btrfs: prepare scrub to support bs > ps cases

 fs/btrfs/misc.h   |   5 ++
 fs/btrfs/raid56.c | 180 +++++++++++++++++++++++-----------------------
 fs/btrfs/raid56.h |  26 ++++---
 fs/btrfs/scrub.c  |  51 +++++++------
 4 files changed, 142 insertions(+), 120 deletions(-)
Signature · 1 line
2.50.1