Skip to contentSkip to conversation

ceph: 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 3/11 ceph: use magic.h

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

---
 fs/ceph/super.h            | 4 +---
 include/uapi/linux/magic.h | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)
fs/ceph/super.h +1 -3
index a973acd..8be85c4 100644
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/posix_acl.h>
 #include <linux/refcount.h>
+#include <linux/magic.h>
 
 #include <linux/ceph/libceph.h>
 
@@ -22,9 +23,6 @@
 #include <linux/fscache.h>
 #endif
 
-/* f_type in struct statfs */
-#define CEPH_SUPER_MAGIC 0x00c36400
-
 /* large granularity for statfs utilization stats to facilitate
  * large volume sizes on 32-bit machines. */
 #define CEPH_BLOCK_SHIFT   22  /* 4 MB */
include/uapi/linux/magic.h +1 -0
index 1265355..507f3c3 100644
@@ -12,6 +12,7 @@
 #define BPF_FS_MAGIC		0xcafe4a11
 #define BTRFS_SUPER_MAGIC	0x9123683E
 #define BTRFS_TEST_MAGIC	0x73727279
+#define CEPH_SUPER_MAGIC	0x00c36400
 #define CGROUP2_SUPER_MAGIC	0x63677270
 #define CGROUP_SUPER_MAGIC	0x27e0eb
 #define CODA_SUPER_MAGIC	0x73757245
Signature · 1 line
2.9.3