Skip to content

Commit

Permalink
btrfs: show compiled-in config features at module load time
Browse files Browse the repository at this point in the history
We want to know if there are debugging features compiled in, this may
affect performance. The message is printed before the sanity checks.
Also kill version.h file that serves no purpose, we don't use any
version tag for kernel module.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
  • Loading branch information
David Sterba authored and Josef Bacik committed Jun 14, 2013
1 parent e6d2960 commit 8596560
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 13 additions & 2 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include "print-tree.h"
#include "xattr.h"
#include "volumes.h"
#include "version.h"
#include "export.h"
#include "compression.h"
#include "rcu-string.h"
Expand Down Expand Up @@ -1685,6 +1684,18 @@ static void btrfs_interface_exit(void)
printk(KERN_INFO "btrfs: misc_deregister failed for control device\n");
}

static void btrfs_print_info(void)
{
printk(KERN_INFO "Btrfs loaded"
#ifdef CONFIG_BTRFS_DEBUG
", debug=on"
#endif
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
", integrity-checker=on"
#endif
"\n");
}

static int __init init_btrfs_fs(void)
{
int err;
Expand Down Expand Up @@ -1733,9 +1744,9 @@ static int __init init_btrfs_fs(void)

btrfs_init_lockdep();

btrfs_print_info();
btrfs_test_free_space_cache();

printk(KERN_INFO "%s loaded\n", BTRFS_BUILD_VERSION);
return 0;

unregister_ioctl:
Expand Down
4 changes: 0 additions & 4 deletions fs/btrfs/version.h

This file was deleted.

0 comments on commit 8596560

Please sign in to comment.