btrfs: print if fsverity support is built in when loading module
authorDavid Sterba <dsterba@suse.com>
Wed, 28 Jul 2021 16:10:39 +0000 (18:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:09 +0000 (13:19 +0200)
As fsverity support depends on a config option, print that at module
load time like we do for similar features.

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

index 2bdc544..d444338 100644 (file)
@@ -2567,6 +2567,11 @@ static void __init btrfs_print_mod_info(void)
 #else
                        ", zoned=no"
 #endif
+#ifdef CONFIG_FS_VERITY
+                       ", fsverity=yes"
+#else
+                       ", fsverity=no"
+#endif
                        ;
        pr_info("Btrfs loaded, crc32c=%s%s\n", crc32c_impl(), options);
 }