]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: pad a stripe's allocated sectors whose write is still to come...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 2 Oct 2026 06:41:44 +0000 (02:41 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:37:56 +0000 (18:37 -0500)
The hunks of "btrfs: stripe_alloc: pad a stripe's allocated sectors
whose write is still to come" (earlier in this series) that need code
from "btrfs: stripe_alloc: isolate nodatacow and preallocated extents by
stripe", which comes after it in this series: they are applied here,
once "btrfs: stripe_alloc: isolate nodatacow and preallocated extents by
stripe" is in, instead of with the rest of "btrfs: stripe_alloc: pad a
stripe's allocated sectors whose write is still to come".

Assisted-by: Claude:claude-opus-5-5
fs/btrfs/block-group.c

index 07536d49a07dd836d9ffd297c5a1af52d27e9498..cc130c76f4f512346bf90c7339fec4431f1496f6 100644 (file)
@@ -1314,6 +1314,7 @@ bool btrfs_stripe_run_pad_mask(struct btrfs_fs_info *fs_info, u64 stripe_start,
                        if (!test_bit(first + i, run->live)) {
                                set_bit(i, dead);
                        } else if (run->written &&
+                                  run->class != BTRFS_STRIPE_RUN_NOCOW &&
                                   !test_bit(first + i, run->written)) {
                                set_bit(i, dead);
                                if (unwritten)