btrfs: print status of experimental mode when loading module
authorAnand Jain <anand.jain@oracle.com>
Wed, 1 Jan 2025 18:06:37 +0000 (02:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:21 +0000 (14:53 +0100)
Commit c9c49e8f157e ("btrfs: split out CONFIG_BTRFS_EXPERIMENTAL from
CONFIG_BTRFS_DEBUG") introduces a way to enable or disable experimental
features, print its status during module load, like:

  Btrfs loaded, experimental=on, debug=on, assert=on, zoned=yes, fsverity=yes

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c

index f6eaaf20229d843641569338884f77651ed67d48..5157037a00483760cfa64420ed36153f475dcd0c 100644 (file)
@@ -2446,6 +2446,9 @@ static __cold void btrfs_interface_exit(void)
 static int __init btrfs_print_mod_info(void)
 {
        static const char options[] = ""
+#ifdef CONFIG_BTRFS_EXPERIMENTAL
+                       ", experimental=on"
+#endif
 #ifdef CONFIG_BTRFS_DEBUG
                        ", debug=on"
 #endif