Skip to content

Commit 1ed147e

Browse files
committed
exfat: move super block magic number to magic.h
Move exfat superblock magic number from local definition to magic.h. It is also needed by userspace programs that call fstatfs(). Acked-by: Christian Brauner <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 92fba08 commit 1ed147e

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

fs/exfat/exfat_fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <linux/ratelimit.h>
1111
#include <linux/nls.h>
1212

13-
#define EXFAT_SUPER_MAGIC 0x2011BAB0UL
1413
#define EXFAT_ROOT_INO 1
1514

1615
#define EXFAT_CLUSTERS_UNTRACKED (~0u)

fs/exfat/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/iversion.h>
1818
#include <linux/nls.h>
1919
#include <linux/buffer_head.h>
20+
#include <linux/magic.h>
2021

2122
#include "exfat_raw.h"
2223
#include "exfat_fs.h"

include/uapi/linux/magic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define MINIX3_SUPER_MAGIC 0x4d5a /* minix v3 fs, 60 char names */
4444

4545
#define MSDOS_SUPER_MAGIC 0x4d44 /* MD */
46+
#define EXFAT_SUPER_MAGIC 0x2011BAB0
4647
#define NCP_SUPER_MAGIC 0x564c /* Guess, what 0x564c is :-) */
4748
#define NFS_SUPER_MAGIC 0x6969
4849
#define OCFS2_SUPER_MAGIC 0x7461636f

0 commit comments

Comments
 (0)