]> git.hungrycats.org Git - linux/commitdiff
btrfs: stripe_alloc: say at mount whether the policy is on (debug part)
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 19 Sep 2026 17:18:25 +0000 (13:18 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 8 Nov 2026 23:38:05 +0000 (18:38 -0500)
The hunks of "btrfs: stripe_alloc: say at mount whether the policy is
on" (earlier in this series) that need code from "btrfs: add a
write-hole invariant checker to the raid56 write path", which comes
after it in this series: they are applied here, once "btrfs: add a
write-hole invariant checker to the raid56 write path" is in, instead of
with the rest of "btrfs: stripe_alloc: say at mount whether the policy
is on".

Assisted-by: Claude:claude-fable-5-1
Assisted-by: Claude:claude-opus-5-5
fs/btrfs/block-group.c

index 264c1a92109d39119a8f6a3211992b1f3dcc276b..a54d100c59eb5dc370dc432b210dc56313684d2b 100644 (file)
@@ -2335,10 +2335,12 @@ int btrfs_enable_stripe_alloc(struct btrfs_fs_info *fs_info)
         * when their caching thread finishes, now that the policy is on.
         */
        stripe_alloc_sweep_groups(fs_info, true);
-       btrfs_info(fs_info,
-                  "using stripe-exclusive allocation for raid56 data");
-       if (live)
+       /* At mount, btrfs_fill_super() reports the outcome. */
+       if (live) {
+               btrfs_info(fs_info,
+       "using stripe-exclusive allocation for raid56 data (filesystem property)");
                queue_work(system_unbound_wq, &fs_info->stripe_alloc_enable_work);
+       }
        return 0;
 }