btrfs: show compiled-in config features at module load time
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 3 Sep 2013 13:25:27 +0000 (15:25 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sat, 21 Sep 2013 14:58:56 +0000 (10:58 -0400)
We want to know if there are debugging features compiled in, this may
affect performance. The message is printed before the sanity checks.

(This commit message is a copy of David Sterba's commit message when
he introduced btrfs_print_info()).

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/super.c

index 3aab10ce63e84812b8e9c5a9250235db9b1bbe86..58cb83f23b1a21c470c4cc58417e5c9c295d92c0 100644 (file)
@@ -1762,6 +1762,9 @@ static void btrfs_print_info(void)
 #ifdef CONFIG_BTRFS_DEBUG
                        ", debug=on"
 #endif
+#ifdef CONFIG_BTRFS_ASSERT
+                       ", assert=on"
+#endif
 #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
                        ", integrity-checker=on"
 #endif