]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: skip RAID5/6 groups that are mapped as RAID1/RAID1C3 (stripe_met...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 10 Oct 2026 04:19:18 +0000 (00:19 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:13 +0000 (18:38 -0500)
The hunks of "btrfs: stripe_alloc: skip RAID5/6 groups that are mapped
as RAID1/RAID1C3" (earlier in this series) that need code from "btrfs:
stripe_meta: cover raid56 system chunks", which comes after it in this
series: they are applied here, once "btrfs: stripe_meta: cover raid56
system chunks" is in, instead of with the rest of "btrfs: stripe_alloc:
skip RAID5/6 groups that are mapped as RAID1/RAID1C3".

Assisted-by: Claude:claude-opus-5-5
fs/btrfs/extent-tree.c

index da2027d79cfa5ce0d6758026c19c12bfedba16b0..40fad6c60a66bafda5142772f0f863fc46d1ce79 100644 (file)
@@ -4249,8 +4249,8 @@ bool btrfs_is_stripe_alloc_bg(const struct btrfs_block_group *bg)
  * The same rule as data: only fully free stripes are claimed, and the
  * partial stripe left at the end of a commit is padded rather than
  * revisited, so no tree block lands in a stripe holding committed blocks.
- * It applies to every raid56 metadata and system group while stripe_alloc
- * is on.  The costs are a stranded stripe tail per commit, and an
+ * It applies to every raid56 metadata and system group with more than one
+ * data stripe while stripe_alloc is on.  The costs are a stranded stripe tail per commit, and an
  * allocation failure aborts the transaction instead of failing one write.
  * System chunks carry no METADATA bit but hold the chunk tree, so they are
  * named explicitly.