Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85965600 authored by David Sterba's avatar David Sterba Committed by Josef Bacik
Browse files

btrfs: show compiled-in config features at module load time



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: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent e6d29605
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -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"
@@ -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;
@@ -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:

fs/btrfs/version.h

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
#ifndef __BTRFS_VERSION_H
#define __BTRFS_VERSION_H
#define BTRFS_BUILD_VERSION "Btrfs"
#endif