Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: prepare raid56 and scrub to support bs > ps cases
@ 2025-09-12  3:59 Qu Wenruo
  2025-09-12  3:59 ` [PATCH 1/2] btrfs: prepare raid56 " Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2025-09-12  3:59 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-17  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12  3:59 [PATCH 0/2] btrfs: prepare raid56 and scrub to support bs > ps cases Qu Wenruo
2025-09-12  3:59 ` [PATCH 1/2] btrfs: prepare raid56 " Qu Wenruo
2025-09-12  3:59 ` [PATCH 2/2] btrfs: prepare scrub " Qu Wenruo
2025-09-17  7:31 ` [PATCH 0/2] btrfs: prepare raid56 and " Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox