Skip to contentSkip to conversation

orangefs: use magic.h

PATCH In review Fabian Frederick 1 participant 1 message May 21, 2017

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

PATCH 4/11 orangefs: use magic.h

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

---
 fs/orangefs/protocol.h     | 3 +--
 include/uapi/linux/magic.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/orangefs/protocol.h +1 -2
index 48bcc1b..a511ac6 100644
@@ -3,6 +3,7 @@
 #include <linux/spinlock_types.h>
 #include <linux/slab.h>
 #include <linux/ioctl.h>
+#include <linux/magic.h>
 
 /* pvfs2-config.h ***********************************************************/
 #define ORANGEFS_VERSION_MAJOR 2
@@ -80,8 +81,6 @@ typedef __u64 ORANGEFS_ds_position;
 typedef __s32 ORANGEFS_error;
 typedef __s64 ORANGEFS_offset;
 
-#define ORANGEFS_SUPER_MAGIC 0x20030528
-
 /*
  * ORANGEFS error codes are a signed 32-bit integer. Error codes are negative, but
  * the sign is stripped before decoding.
include/uapi/linux/magic.h +1 -0
index 507f3c3..a83c48f 100644
@@ -47,6 +47,7 @@
 #define NILFS_SUPER_MAGIC	0x3434
 #define NSFS_MAGIC		0x6e736673
 #define OPENPROM_SUPER_MAGIC	0x9fa1
+#define ORANGEFS_SUPER_MAGIC	0x20030528
 #define OVERLAYFS_SUPER_MAGIC	0x794c7630
 #define PIPEFS_MAGIC		0x50495045
 #define PROC_SUPER_MAGIC	0x9fa0
Signature · 1 line
2.9.3