]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: count open stripe run remainders against data reservations ...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:17:45 +0000 (13:17 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 02:16:29 +0000 (21:16 -0500)
The hunks of "btrfs: stripe_alloc: count open stripe run remainders
against data reservations" (earlier in this series) that need code from
"btrfs: stripe_alloc: persist nocow runs across commits and remounts",
which comes after it in this series: they are applied here, once "btrfs:
stripe_alloc: persist nocow runs across commits and remounts" is in,
instead of with the rest of "btrfs: stripe_alloc: count open stripe run
remainders against data reservations".

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

index caca03bab794a67e5c62208cc6f8834a0ea19f60..dbf5073e07869fb7529719f1b2d5db660a291861 100644 (file)
@@ -1840,6 +1840,7 @@ restart:
                        btrfs_get_block_group(bg);
                        spin_unlock(&fs_info->open_stripe_lock);
                        btrfs_add_free_space(bg, tail_start, tail_len);
+                       stripe_open_remainder_sync(bg);
                        btrfs_put_block_group(bg);
                        goto restart;
                }