]> git.hungrycats.org Git - linux/commit
btrfs: stripe_alloc: report read-modify-write of uncovered stripes
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:17:48 +0000 (13:17 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:37:47 +0000 (18:37 -0500)
commit6fed28f3541f5afaa0956501a71da7aee2f35654
tree6de850bbd9047be3a16aa61e4076b00fed4e3426
parentba2cad4388c2c38967413cb5f5647ac6dd287121
btrfs: stripe_alloc: report read-modify-write of uncovered stripes

The mount-time warning says which block groups stripe_alloc does not
cover.  It cannot say whether anything is actually landing there, and on
a filesystem with raid56 metadata that is the interesting question: every
sub-stripe write to an uncovered stripe is a write hole window, where
parity and data reach the disk separately and a crash in between leaves
the stripe unreconstructible.

Report it from the one place that knows the write is going out as a
read-modify-write rather than as a full or padded stripe.  Rate limited,
because a raid56-metadata filesystem does this continuously and the point
is to make the exposure visible rather than to fill the log.  (A
meta_rmw counter in stripe_park_stats, to read the rate off without
grepping dmesg, is debug code and is added in the debug subtopic.)

Silent when stripe_alloc is off: there the whole filesystem works this
way and the user has asked for nothing else.

Assisted-by: Claude:claude-fable-5
Assisted-by: Claude:claude-opus-5-5
fs/btrfs/raid56.c