Update Btrfs files for in-kernel usage
authorChris Mason <chris.mason@oracle.com>
Wed, 24 Sep 2008 15:05:53 +0000 (11:05 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 19:41:59 +0000 (15:41 -0400)
btrfs had magic to put the chagneset id into a printk on module load.
This removes that from the Makefile and hardcodes the printk to print
"Btrfs"

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/Makefile
fs/btrfs/version.h [new file with mode: 0644]

index eb36ae981bdcdb0eafc0a67d5ca5e8caf9377046..d5c28557fba95728226b96c888dc3708862e3f72 100644 (file)
@@ -13,17 +13,12 @@ else
 # Normal Makefile
 
 KERNELDIR := /lib/modules/`uname -r`/build
-all: version
+all:
        $(MAKE) -C $(KERNELDIR) M=`pwd` modules
 
-version:
-       bash version.sh
-
 modules_install:
        $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
 clean:
        $(MAKE) -C $(KERNELDIR) M=`pwd` clean
 
-tester:
-       $(MAKE) -C $(KERNELDIR) M=`pwd` tree-defrag.o transaction.o sysfs.o super.o root-tree.o inode-map.o inode-item.o inode.o file-item.o file.o extent_map.o disk-io.o ctree.o dir-item.o extent-tree.o
 endif
diff --git a/fs/btrfs/version.h b/fs/btrfs/version.h
new file mode 100644 (file)
index 0000000..9bf3946
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef __BTRFS_VERSION_H
+#define __BTRFS_VERSION_H
+#define BTRFS_BUILD_VERSION "Btrfs"
+#endif