From 27e6b64b828e5bce3018129cb76475e4876560f9 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 1 Oct 2026 00:57:50 -0400 Subject: [PATCH] btrfs: stripe_alloc: keep relocation's stripe runs until relocation ends (reclaim part) The hunks of "btrfs: stripe_alloc: keep relocation's stripe runs until relocation ends" (earlier in this series) that need code from "btrfs: stripe_alloc: compact mostly live groups instead of skipping them", which comes after it in this series: they are applied here, once "btrfs: stripe_alloc: compact mostly live groups instead of skipping them" is in, instead of with the rest of "btrfs: stripe_alloc: keep relocation's stripe runs until relocation ends". Assisted-by: Claude:claude-opus-5-5 --- fs/btrfs/sysfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 56140f1f34c35..586b9eb7a637e 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -1181,6 +1181,8 @@ static ssize_t btrfs_stripe_run_stats_show(struct kobject *kobj, "strand_scan_bytes %lld\n" "strand_rescan_marks %lld\n" "nocow_run_dead_closed %lld\n" + "reloc_run_retained %lld\n" + "reloc_run_released %lld\n" "compact_runs %lld\n" "compact_fallbacks %lld\n" "compact_stripes %lld\n" @@ -1190,6 +1192,8 @@ static ssize_t btrfs_stripe_run_stats_show(struct kobject *kobj, atomic64_read(&fs_info->stripe_run_stats.strand_scan_bytes), atomic64_read(&fs_info->stripe_run_stats.strand_rescan_marks), atomic64_read(&fs_info->stripe_run_stats.nocow_run_dead_closed), + atomic64_read(&fs_info->stripe_run_stats.reloc_run_retained), + atomic64_read(&fs_info->stripe_run_stats.reloc_run_released), atomic64_read(&fs_info->stripe_run_stats.compact_runs), atomic64_read(&fs_info->stripe_run_stats.compact_fallbacks), atomic64_read(&fs_info->stripe_run_stats.compact_stripes), -- 2.53.0