diff options
| author | Fabian Frederick <fabf@skynet.be> | 2017-07-06 18:36:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-06 19:24:30 -0400 |
| commit | 62aa81d7c4c24b90fdb61da70ac0dbbc414f9939 (patch) | |
| tree | 44ee739f406b31455a160dabda3387eb91cbc980 | |
| parent | 8c4d5a4387161c58a0f3d4c6c849b59bbb6c098a (diff) | |
ocfs2: use magic.h
Filesystems generally use SUPER_MAGIC values from magic.h instead of a
local definition.
Link: http://lkml.kernel.org/r/20170521154217.27917-1-fabf@skynet.be
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Mark Fasheh <mfasheh@versity.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | fs/ocfs2/ocfs2_fs.h | 5 | ||||
| -rw-r--r-- | include/uapi/linux/magic.h | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index 44d178b8d1aa..5bb4a89f9045 100644 --- a/fs/ocfs2/ocfs2_fs.h +++ b/fs/ocfs2/ocfs2_fs.h | |||
| @@ -25,6 +25,8 @@ | |||
| 25 | #ifndef _OCFS2_FS_H | 25 | #ifndef _OCFS2_FS_H |
| 26 | #define _OCFS2_FS_H | 26 | #define _OCFS2_FS_H |
| 27 | 27 | ||
| 28 | #include <linux/magic.h> | ||
| 29 | |||
| 28 | /* Version */ | 30 | /* Version */ |
| 29 | #define OCFS2_MAJOR_REV_LEVEL 0 | 31 | #define OCFS2_MAJOR_REV_LEVEL 0 |
| 30 | #define OCFS2_MINOR_REV_LEVEL 90 | 32 | #define OCFS2_MINOR_REV_LEVEL 90 |
| @@ -56,9 +58,6 @@ | |||
| 56 | #define OCFS2_MIN_BLOCKSIZE 512 | 58 | #define OCFS2_MIN_BLOCKSIZE 512 |
| 57 | #define OCFS2_MAX_BLOCKSIZE OCFS2_MIN_CLUSTERSIZE | 59 | #define OCFS2_MAX_BLOCKSIZE OCFS2_MIN_CLUSTERSIZE |
| 58 | 60 | ||
| 59 | /* Filesystem magic number */ | ||
| 60 | #define OCFS2_SUPER_MAGIC 0x7461636f | ||
| 61 | |||
| 62 | /* Object signatures */ | 61 | /* Object signatures */ |
| 63 | #define OCFS2_SUPER_BLOCK_SIGNATURE "OCFSV2" | 62 | #define OCFS2_SUPER_BLOCK_SIGNATURE "OCFSV2" |
| 64 | #define OCFS2_INODE_SIGNATURE "INODE01" | 63 | #define OCFS2_INODE_SIGNATURE "INODE01" |
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h index a0908f1d2760..e439565df838 100644 --- a/include/uapi/linux/magic.h +++ b/include/uapi/linux/magic.h | |||
| @@ -42,6 +42,7 @@ | |||
| 42 | #define MSDOS_SUPER_MAGIC 0x4d44 /* MD */ | 42 | #define MSDOS_SUPER_MAGIC 0x4d44 /* MD */ |
| 43 | #define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */ | 43 | #define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */ |
| 44 | #define NFS_SUPER_MAGIC 0x6969 | 44 | #define NFS_SUPER_MAGIC 0x6969 |
| 45 | #define OCFS2_SUPER_MAGIC 0x7461636f | ||
| 45 | #define OPENPROM_SUPER_MAGIC 0x9fa1 | 46 | #define OPENPROM_SUPER_MAGIC 0x9fa1 |
| 46 | #define QNX4_SUPER_MAGIC 0x002f /* qnx4 fs detection */ | 47 | #define QNX4_SUPER_MAGIC 0x002f /* qnx4 fs detection */ |
| 47 | #define QNX6_SUPER_MAGIC 0x68191122 /* qnx6 fs detection */ | 48 | #define QNX6_SUPER_MAGIC 0x68191122 /* qnx6 fs detection */ |
