]> 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>
Mon, 2 Nov 2026 02:16:31 +0000 (21:16 -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 d29803e43bd561b916fe2804921e4ae2d65a1dea..45a09c6b6fdfdc869f530419e83c6b49b85b8281 100644 (file)
@@ -3082,6 +3082,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));