Skip to contentSkip to conversation

ocfs2: use magic.h

PATCH New [email protected] 1 participant 1 message Jul 6, 2017 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 16/108 ocfs2: use magic.h

From: Fabian Frederick <[email protected]>
Subject: ocfs2: use magic.h

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

---

 fs/ocfs2/ocfs2_fs.h        |    5 ++---
 include/uapi/linux/magic.h |    1 +
 2 files changed, 3 insertions(+), 3 deletions(-)
fs/ocfs2/ocfs2_fs.h renamed from fs/ocfs2/ocfs2_fs.h~ocfs2-use-magich +2 -2
diff -puN fs/ocfs2/ocfs2_fs.h~ocfs2-use-magich fs/ocfs2/ocfs2_fs.h
@@ -25,6 +25,8 @@
 #ifndef _OCFS2_FS_H
 #define _OCFS2_FS_H
 
+#include <linux/magic.h>
+
 /* Version */
 #define OCFS2_MAJOR_REV_LEVEL		0
 #define OCFS2_MINOR_REV_LEVEL          	90
@@ -56,9 +58,6 @@
 #define OCFS2_MIN_BLOCKSIZE		512
 #define OCFS2_MAX_BLOCKSIZE		OCFS2_MIN_CLUSTERSIZE
 
-/* Filesystem magic number */
-#define OCFS2_SUPER_MAGIC		0x7461636f