[PATCH v2] tux3: move TUX3_SUPER_MAGIC to magic.h
Chao Yu
chao2.yu at samsung.com
Thu Aug 7 02:01:25 PDT 2014
Define the Tux3 magic number in linux/magic.h like other filesystems do.
v2:
o modify description for this patch suggested by Daniel Phillips.
Signed-off-by: Chao Yu <chao2.yu at samsung.com>
---
fs/tux3/super.c | 5 -----
include/uapi/linux/magic.h | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/fs/tux3/super.c b/fs/tux3/super.c
index 931c86d..c2cb4dc 100644
--- a/fs/tux3/super.c
+++ b/fs/tux3/super.c
@@ -12,11 +12,6 @@
#include <linux/statfs.h>
#include "kcompat.h"
-/* This will go to include/linux/magic.h */
-#ifndef TUX3_SUPER_MAGIC
-#define TUX3_SUPER_MAGIC 0x74757833
-#endif
-
#define trace trace_on
/* FIXME: this should be mount option? */
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h
index 77c6031..51f1e60 100644
--- a/include/uapi/linux/magic.h
+++ b/include/uapi/linux/magic.h
@@ -23,6 +23,7 @@
#define XENFS_SUPER_MAGIC 0xabba1974
#define EXT4_SUPER_MAGIC 0xEF53
#define BTRFS_SUPER_MAGIC 0x9123683E
+#define TUX3_SUPER_MAGIC 0x74757833
#define NILFS_SUPER_MAGIC 0x3434
#define F2FS_SUPER_MAGIC 0xF2F52010
#define HPFS_SUPER_MAGIC 0xf995e849
--
2.0.1.474.g72c7794
More information about the Tux3
mailing list