]> 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>
Mon, 2 Nov 2026 02:16:30 +0000 (21:16 -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 09aa4404f7058b0030db106a8ca519a90307fd68..b24cabbd7a2abcadf3caa2a647142c15b1a915ba 100644 (file)
@@ -2325,10 +2325,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;
 }