]> git.hungrycats.org Git - linux/commit
btrfs: stripe_alloc: show per-group trapped bytes in the space info dump
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:18:16 +0000 (13:18 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:37:50 +0000 (18:37 -0500)
commit83c0a77af07ef71e8e4600d5f878fea083e85ea6
tree82b1780fc215c3d1fa51fa04dd37119efaeeeabf
parente2a0482c53145972004e20bf93ae36e94a726b1a
btrfs: stripe_alloc: show per-group trapped bytes in the space info dump

btrfs_dump_space_info() prints each block group's available bytes, and
under stripe_alloc those include the free space trapped in partly used
stripes, which no allocation can use until the group is reclaimed
(stripe_unusable).  An ENOSPC dump then shows space in the groups that
cannot be had.

Print stripe_unusable next to zone_unusable and leave it out of the
available bytes.  A group whose trapped bytes have not been counted yet
(stripe_unusable_ready not set) prints 0 and the old available figure.

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