diff options
-rw-r--r-- | fs/inotify_user.c | 4 | ||||
-rw-r--r-- | include/linux/magic.h | 3 | ||||
-rw-r--r-- | kernel/futex.c | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c index 9bf2f6c09df6..5e009331c01f 100644 --- a/fs/inotify_user.c +++ b/fs/inotify_user.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/list.h> | 31 | #include <linux/list.h> |
32 | #include <linux/inotify.h> | 32 | #include <linux/inotify.h> |
33 | #include <linux/syscalls.h> | 33 | #include <linux/syscalls.h> |
34 | #include <linux/magic.h> | ||
34 | 35 | ||
35 | #include <asm/ioctls.h> | 36 | #include <asm/ioctls.h> |
36 | 37 | ||
@@ -684,7 +685,8 @@ static int | |||
684 | inotify_get_sb(struct file_system_type *fs_type, int flags, | 685 | inotify_get_sb(struct file_system_type *fs_type, int flags, |
685 | const char *dev_name, void *data, struct vfsmount *mnt) | 686 | const char *dev_name, void *data, struct vfsmount *mnt) |
686 | { | 687 | { |
687 | return get_sb_pseudo(fs_type, "inotify", NULL, 0xBAD1DEA, mnt); | 688 | return get_sb_pseudo(fs_type, "inotify", NULL, |
689 | INOTIFYFS_SUPER_MAGIC, mnt); | ||
688 | } | 690 | } |
689 | 691 | ||
690 | static struct file_system_type inotify_fs_type = { | 692 | static struct file_system_type inotify_fs_type = { |
diff --git a/include/linux/magic.h b/include/linux/magic.h index 36cc20dfd142..722d4755060f 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h | |||
@@ -38,4 +38,7 @@ | |||
38 | #define SMB_SUPER_MAGIC 0x517B | 38 | #define SMB_SUPER_MAGIC 0x517B |
39 | #define USBDEVICE_SUPER_MAGIC 0x9fa2 | 39 | #define USBDEVICE_SUPER_MAGIC 0x9fa2 |
40 | 40 | ||
41 | #define FUTEXFS_SUPER_MAGIC 0xBAD1DEA | ||
42 | #define INOTIFYFS_SUPER_MAGIC 0x2BAD1DEA | ||
43 | |||
41 | #endif /* __LINUX_MAGIC_H__ */ | 44 | #endif /* __LINUX_MAGIC_H__ */ |
diff --git a/kernel/futex.c b/kernel/futex.c index fcc94e7b4086..d725676d84f3 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include <linux/syscalls.h> | 52 | #include <linux/syscalls.h> |
53 | #include <linux/signal.h> | 53 | #include <linux/signal.h> |
54 | #include <linux/module.h> | 54 | #include <linux/module.h> |
55 | #include <linux/magic.h> | ||
55 | #include <asm/futex.h> | 56 | #include <asm/futex.h> |
56 | 57 | ||
57 | #include "rtmutex_common.h" | 58 | #include "rtmutex_common.h" |
@@ -2080,7 +2081,7 @@ static int futexfs_get_sb(struct file_system_type *fs_type, | |||
2080 | int flags, const char *dev_name, void *data, | 2081 | int flags, const char *dev_name, void *data, |
2081 | struct vfsmount *mnt) | 2082 | struct vfsmount *mnt) |
2082 | { | 2083 | { |
2083 | return get_sb_pseudo(fs_type, "futex", NULL, 0xBAD1DEA, mnt); | 2084 | return get_sb_pseudo(fs_type, "futex", NULL, FUTEXFS_SUPER_MAGIC, mnt); |
2084 | } | 2085 | } |
2085 | 2086 | ||
2086 | static struct file_system_type futex_fs_type = { | 2087 | static struct file_system_type futex_fs_type = { |