]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: keep relocation's stripe runs until relocation ends (reclaim...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Thu, 1 Oct 2026 04:57:50 +0000 (00:57 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:00 +0000 (18:38 -0500)
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

index 02d5ba71e1e71d483243100102ae5d381d157505..49db22dd1d6b12b64a511115ef2a05bbb3310027 100644 (file)
@@ -1294,6 +1294,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"
@@ -1303,6 +1305,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),