Skip to contentSkip to conversation

jfs: use magic.h

PATCH In review Fabian Frederick 2 participants 2 messages May 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/11 jfs: use magic.h

Filesystems generally use SUPER_MAGIC values from magic.h instead of a local definition.

---
 fs/jfs/jfs_incore.h        | 6 +-----
 include/uapi/linux/magic.h | 1 +
 2 files changed, 2 insertions(+), 5 deletions(-)
fs/jfs/jfs_incore.h +1 -5
index 1f26d19..64b9152 100644
@@ -23,16 +23,12 @@
 #include <linux/rwsem.h>
 #include <linux/slab.h>
 #include <linux/bitops.h>
+#include <linux/magic.h>
 #include "jfs_types.h"
 #include "jfs_xtree.h"
 #include "jfs_dtree.h"
 
 /*
- * JFS magic number
- */
-#define JFS_SUPER_MAGIC 0x3153464a /* "JFS1" */
-
-/*
  * JFS-private inode information
  */
 struct jfs_inode_info {
include/uapi/linux/magic.h +1 -0
index b651a02..905eaa2 100644
@@ -34,6 +34,7 @@
 #define HPFS_SUPER_MAGIC	0xf995e849
 #define HUGETLBFS_MAGIC		0x958458f6	/* some random number */
 #define ISOFS_SUPER_MAGIC	0x9660
+#define JFS_SUPER_MAGIC		0x3153464a	/* "JFS1" */
 #define JFFS2_SUPER_MAGIC	0x72b6
 #define MINIX2_SUPER_MAGIC	0x2468		/* minix v2 fs, 14 char names */
 #define MINIX2_SUPER_MAGIC2	0x2478		/* minix v2 fs, 30 char names */
Signature · 1 line
2.9.3
Acked-by on v1 6/11
#1 lore raw
Quoted 4 lines · Fabian Frederick

Filesystems generally use SUPER_MAGIC values from magic.h instead of a local definition.

Quoted 40 lines
---
 fs/jfs/jfs_incore.h        | 6 +-----
 include/uapi/linux/magic.h | 1 +
 2 files changed, 2 insertions(+), 5 deletions(-)
fs/jfs/jfs_incore.h +1 -5
index 1f26d19..64b9152 100644
@@ -23,16 +23,12 @@
 #include <linux/rwsem.h>
 #include <linux/slab.h>
 #include <linux/bitops.h>
+#include <linux/magic.h>
 #include "jfs_types.h"
 #include "jfs_xtree.h"
 #include "jfs_dtree.h"
 
 /*
- * JFS magic number
- */
-#define JFS_SUPER_MAGIC 0x3153464a /* "JFS1" */
-
-/*
  * JFS-private inode information
  */
 struct jfs_inode_info {
include/uapi/linux/magic.h +1 -0
index b651a02..905eaa2 100644
@@ -34,6 +34,7 @@
 #define HPFS_SUPER_MAGIC	0xf995e849
 #define HUGETLBFS_MAGIC		0x958458f6	/* some random number */
 #define ISOFS_SUPER_MAGIC	0x9660
+#define JFS_SUPER_MAGIC		0x3153464a	/* "JFS1" */
 #define JFFS2_SUPER_MAGIC	0x72b6
 #define MINIX2_SUPER_MAGIC	0x2468		/* minix v2 fs, 14 char names */
 #define MINIX2_SUPER_MAGIC2	0x2478		/* minix v2 fs, 30 char names */