]> git.hungrycats.org Git - linux/commit
btrfs: stripe_alloc: count nocow run lifecycles and stranded stripes in sysfs
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 11 Sep 2026 13:27:32 +0000 (09:27 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 16 Sep 2026 21:40:06 +0000 (17:40 -0400)
commit0719d10fc2ab6aa3ff50784040bca03655c59358
tree1acfa095de42d82220febf97d667d748a1c30d8b
parent92d1b284951a20406e1537c111e8e86e6875e8e2
btrfs: stripe_alloc: count nocow run lifecycles and stranded stripes in sysfs

Add a stripe_run_stats file beside stripe_park_stats with lifetime
counters for the paths the previous two patches touched, so a test can
show that it exercised them rather than merely passed: private NOCOW
runs opened, claim candidates refused for overlapping a live run, bytes
of whole stripes the scans found stranded behind live runs, and rescans
requested by a freed run to credit its stripes back.

Assisted-by: Claude:claude-fable-5
fs/btrfs/block-group.c
fs/btrfs/fs.h
fs/btrfs/sysfs.c