Commit 1bcbf31337391a2f54ef6c1e8871c2de5944a7dc
Committed by
Linus Torvalds
1 parent
71038f527f
Exists in
master
and in
7 other branches
btrfs & squashfs: Move btrfs and squashfsto's magic number to <linux/magic.h>
Use the standard magic.h for btrfs and squashfs. Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com> Cc: Phillip Lougher <phillip@lougher.demon.co.uk> Cc: Chris Mason <chris.mason@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 4 changed files with 4 additions and 2 deletions Side-by-side Diff
fs/btrfs/super.c
... | ... | @@ -38,6 +38,7 @@ |
38 | 38 | #include <linux/namei.h> |
39 | 39 | #include <linux/miscdevice.h> |
40 | 40 | #include <linux/version.h> |
41 | +#include <linux/magic.h> | |
41 | 42 | #include "compat.h" |
42 | 43 | #include "ctree.h" |
43 | 44 | #include "disk-io.h" |
... | ... | @@ -51,7 +52,6 @@ |
51 | 52 | #include "export.h" |
52 | 53 | #include "compression.h" |
53 | 54 | |
54 | -#define BTRFS_SUPER_MAGIC 0x9123683E | |
55 | 55 | |
56 | 56 | static struct super_operations btrfs_super_ops; |
57 | 57 |
fs/squashfs/squashfs_fs.h
fs/squashfs/super.c
include/linux/magic.h
... | ... | @@ -10,11 +10,13 @@ |
10 | 10 | #define SYSFS_MAGIC 0x62656572 |
11 | 11 | #define SECURITYFS_MAGIC 0x73636673 |
12 | 12 | #define TMPFS_MAGIC 0x01021994 |
13 | +#define SQUASHFS_MAGIC 0x73717368 | |
13 | 14 | #define EFS_SUPER_MAGIC 0x414A53 |
14 | 15 | #define EXT2_SUPER_MAGIC 0xEF53 |
15 | 16 | #define EXT3_SUPER_MAGIC 0xEF53 |
16 | 17 | #define XENFS_SUPER_MAGIC 0xabba1974 |
17 | 18 | #define EXT4_SUPER_MAGIC 0xEF53 |
19 | +#define BTRFS_SUPER_MAGIC 0x9123683E | |
18 | 20 | #define HPFS_SUPER_MAGIC 0xf995e849 |
19 | 21 | #define ISOFS_SUPER_MAGIC 0x9660 |
20 | 22 | #define JFFS2_SUPER_MAGIC 0x72b6 |