]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: do not count a writeback ENOSPC drop's give-back as supply ...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 25 Oct 2026 10:27:49 +0000 (06:27 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 02:16:31 +0000 (21:16 -0500)
The hunks of "btrfs: stripe_alloc: do not count a writeback ENOSPC
drop's give-back as supply" (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: do not count a
writeback ENOSPC drop's give-back as supply".

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

index 10c14fdc85bc4d1f7e9a491ebc21b25dcde89cb4..22839793ed94f77d6c3fcb1fc68c07175969b6bd 100644 (file)
@@ -1007,7 +1007,7 @@ 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_stranded=%llu stripe_open=%llu stripe_claimable=%llu stripe_margin=%llu stripe_reserve=%llu unmanaged_free=%lld",
+"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 stripe_quarantine=%llu",
                info->total_bytes, info->bytes_used, info->bytes_pinned,
                info->bytes_reserved, info->bytes_may_use,
                info->bytes_readonly, info->bytes_zone_unusable,
@@ -1015,7 +1015,8 @@ static void __btrfs_dump_space_info(const struct btrfs_space_info *info)
                info->bytes_stripe_open,
                info->bytes_stripe_claimable,
                info->bytes_stripe_margin, info->bytes_stripe_reserve,
-               (s64)atomic64_read(&info->bytes_unmanaged_free));
+               (s64)atomic64_read(&info->bytes_unmanaged_free),
+               info->bytes_stripe_quarantine);
 }
 
 void btrfs_dump_space_info(struct btrfs_space_info *info, u64 bytes,