]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: count whole stripes stranded behind live runs as trapped (stripe...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:18:19 +0000 (13:18 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:12 +0000 (18:38 -0500)
The hunks of "btrfs: stripe_alloc: count whole stripes stranded behind
live runs as trapped" (earlier in this series) that need code from
"btrfs: stripe_meta: hold back whole stripes so tree blocks always land
and trapped groups can be reclaimed", which comes after it in this
series: they are applied here, once "btrfs: stripe_meta: hold back whole
stripes so tree blocks always land and trapped groups can be reclaimed"
is in, instead of with the rest of "btrfs: stripe_alloc: count whole
stripes stranded behind live runs as trapped".

Assisted-by: Claude:claude-fable-5
Assisted-by: Claude:claude-opus-5-5
fs/btrfs/space-info.c

index f5a4cb6e7433fe568500ca9e03c9cfd29bfe6e51..d9f64da276d1c673c72f7948739945b43a218df6 100644 (file)
@@ -1010,13 +1010,15 @@ static void __btrfs_dump_space_info(const struct btrfs_space_info *info)
                   (s64)(info->total_bytes - btrfs_space_info_used(info, true)),
                   info->full ? "" : "not ");
        btrfs_info(fs_info,
-"space_info total=%llu, used=%llu, pinned=%llu, reserved=%llu, may_use=%llu, readonly=%llu zone_unusable=%llu stripe_unusable=%llu stripe_open=%llu stripe_claimable=%llu stripe_margin=%llu stripe_reserve=%llu",
+"space_info total=%llu, used=%llu, pinned=%llu, reserved=%llu, may_use=%llu, readonly=%llu zone_unusable=%llu stripe_unusable=%llu stripe_stranded=%llu stripe_open=%llu stripe_claimable=%llu stripe_margin=%llu stripe_reserve=%llu unmanaged_free=%lld",
                info->total_bytes, info->bytes_used, info->bytes_pinned,
                info->bytes_reserved, info->bytes_may_use,
                info->bytes_readonly, info->bytes_zone_unusable,
-               info->bytes_stripe_unusable, info->bytes_stripe_open,
+               info->bytes_stripe_unusable, info->bytes_stripe_stranded,
+               info->bytes_stripe_open,
                info->bytes_stripe_claimable,
-               info->bytes_stripe_margin, info->bytes_stripe_reserve);
+               info->bytes_stripe_margin, info->bytes_stripe_reserve,
+               (s64)atomic64_read(&info->bytes_unmanaged_free));
 }
 
 void btrfs_dump_space_info(struct btrfs_space_info *info, u64 bytes,