]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: tunable park deadlines, and say why padding declined (debug_meta...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:17:50 +0000 (13:17 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:16 +0000 (18:38 -0500)
The hunks of "btrfs: stripe_alloc: tunable park deadlines, and say why
padding declined" (earlier in this series) that need code from "btrfs:
raid56: say whether a metadata read-modify-write is a write hole", which
comes after it in this series: they are applied here, once "btrfs:
raid56: say whether a metadata read-modify-write is a write hole" is in,
instead of with the rest of "btrfs: stripe_alloc: tunable park
deadlines, and say why padding declined".

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

index a64a99545315ef2e0b738f56d3eb7b7c3a2b5f26..0eeddb135c7ee94c2829374ea18a9b9c1bd29a32 100644 (file)
@@ -1324,6 +1324,10 @@ static ssize_t btrfs_stripe_park_stats_show(struct kobject *kobj,
                "padded %lld\n"
                "padded_unwritten %lld\n"
                "rmw_reads %lld\n"
+               "data_rmw %lld\n"
+               "pad_decline_live %lld\n"
+               "pad_decline_no_run %lld\n"
+               "pad_decline_unallocated %lld\n"
                "meta_rmw %lld\n"
                "meta_rmw_cur %lld\n"
                "meta_rmw_old %lld\n"
@@ -1349,6 +1353,10 @@ static ssize_t btrfs_stripe_park_stats_show(struct kobject *kobj,
                atomic64_read(&fs_info->stripe_park_stats.padded),
                atomic64_read(&fs_info->stripe_park_stats.padded_unwritten),
                atomic64_read(&fs_info->stripe_park_stats.rmw_reads),
+               atomic64_read(&fs_info->stripe_park_stats.data_rmw),
+               atomic64_read(&fs_info->stripe_park_stats.pad_decline_live),
+               atomic64_read(&fs_info->stripe_park_stats.pad_decline_no_run),
+               atomic64_read(&fs_info->stripe_park_stats.pad_decline_unallocated),
                atomic64_read(&fs_info->stripe_park_stats.meta_rmw),
                atomic64_read(&fs_info->stripe_park_stats.meta_rmw_cur),
                atomic64_read(&fs_info->stripe_park_stats.meta_rmw_old),