]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: keep a stripe in the rbio cache until its run has written all...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 1 Oct 2026 16:14:49 +0000 (12:14 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:10 +0000 (18:38 -0500)
The hunks of "btrfs: stripe_alloc: keep a stripe in the rbio cache until
its run has written all of it" (earlier in this series) that need code
from "btrfs: stripe_meta: allocate tree blocks by whole stripes", which
comes after it in this series: they are applied here, once "btrfs:
stripe_meta: allocate tree blocks by whole stripes" is in, instead of
with the rest of "btrfs: stripe_alloc: keep a stripe in the rbio cache
until its run has written all of it".

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

index 68b34d9cb65361aa900006cef7a723b453f2815a..c717fd109aa5652aca6b343eaeb5391531c29318 100644 (file)
@@ -3092,6 +3092,7 @@ void btrfs_free_open_stripe_runs(struct btrfs_fs_info *fs_info)
                                           run->inflight_bytes);
                        list_del(&run->list);
                        bitmap_free(run->live);
+                       bitmap_free(run->written);
                        kfree(run);
                }
                memset(bg->open_stripe, 0, sizeof(bg->open_stripe));