summaryrefslogtreecommitdiff
path: root/fs/exfat
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2021-11-25 21:01:11 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2022-01-10 11:00:03 +0900
commit1ed147e29e505de819aaa5b57919c25348f72e1f (patch)
treef9d5db0ee6e4b1dda08cfd667ba4081eda1455b1 /fs/exfat
parent92fba084b79e6bc7b12fc118209f1922c1a2df56 (diff)
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 <christian.brauner@ubuntu.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat')
-rw-r--r--fs/exfat/exfat_fs.h1
-rw-r--r--fs/exfat/super.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h
index a8f5bc536dcf..9665fa0b2d56 100644
--- a/fs/exfat/exfat_fs.h
+++ b/fs/exfat/exfat_fs.h
@@ -10,7 +10,6 @@
#include <linux/ratelimit.h>
#include <linux/nls.h>
-#define EXFAT_SUPER_MAGIC 0x2011BAB0UL
#define EXFAT_ROOT_INO 1
#define EXFAT_CLUSTERS_UNTRACKED (~0u)
diff --git a/fs/exfat/super.c b/fs/exfat/super.c
index 4b5d02b1df58..8c9fb7dcec16 100644
--- a/fs/exfat/super.c
+++ b/fs/exfat/super.c
@@ -17,6 +17,7 @@
#include <linux/iversion.h>
#include <linux/nls.h>
#include <linux/buffer_head.h>
+#include <linux/magic.h>
#include "exfat_raw.h"
#include "exfat_fs.h"