diff options
author | Muthu Kumar <muthu.lkml@gmail.com> | 2012-03-23 18:01:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 19:58:31 -0400 |
commit | b502bd1152472dc1b98c60434f23c23b280c7b94 (patch) | |
tree | 4de5d63e00a348108c436ebfd0639b57295e4bfe /fs | |
parent | d982d5955e9033015a2cc119aa7c0a878e275964 (diff) |
magic.h: move some FS magic numbers into magic.h
- Move open-coded filesystem magic numbers into magic.h
- Rearrange magic.h so that the filesystem-related constants are grouped
together.
Signed-off-by: Muthukumar R <muthur@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/binfmt_misc.c | 3 | ||||
-rw-r--r-- | fs/block_dev.c | 3 | ||||
-rw-r--r-- | fs/pipe.c | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 1ffb60355cae..613aa0618235 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/magic.h> | ||
22 | #include <linux/binfmts.h> | 23 | #include <linux/binfmts.h> |
23 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
24 | #include <linux/ctype.h> | 25 | #include <linux/ctype.h> |
@@ -699,7 +700,7 @@ static int bm_fill_super(struct super_block * sb, void * data, int silent) | |||
699 | [3] = {"register", &bm_register_operations, S_IWUSR}, | 700 | [3] = {"register", &bm_register_operations, S_IWUSR}, |
700 | /* last one */ {""} | 701 | /* last one */ {""} |
701 | }; | 702 | }; |
702 | int err = simple_fill_super(sb, 0x42494e4d, bm_files); | 703 | int err = simple_fill_super(sb, BINFMTFS_MAGIC, bm_files); |
703 | if (!err) | 704 | if (!err) |
704 | sb->s_op = &s_ops; | 705 | sb->s_op = &s_ops; |
705 | return err; | 706 | return err; |
diff --git a/fs/block_dev.c b/fs/block_dev.c index a9ff3000b83d..e08f6a20a5bb 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/blkdev.h> | 16 | #include <linux/blkdev.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/blkpg.h> | 18 | #include <linux/blkpg.h> |
19 | #include <linux/magic.h> | ||
19 | #include <linux/buffer_head.h> | 20 | #include <linux/buffer_head.h> |
20 | #include <linux/swap.h> | 21 | #include <linux/swap.h> |
21 | #include <linux/pagevec.h> | 22 | #include <linux/pagevec.h> |
@@ -506,7 +507,7 @@ static const struct super_operations bdev_sops = { | |||
506 | static struct dentry *bd_mount(struct file_system_type *fs_type, | 507 | static struct dentry *bd_mount(struct file_system_type *fs_type, |
507 | int flags, const char *dev_name, void *data) | 508 | int flags, const char *dev_name, void *data) |
508 | { | 509 | { |
509 | return mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, 0x62646576); | 510 | return mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, BDEVFS_MAGIC); |
510 | } | 511 | } |
511 | 512 | ||
512 | static struct file_system_type bd_type = { | 513 | static struct file_system_type bd_type = { |
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
14 | #include <linux/log2.h> | 14 | #include <linux/log2.h> |
15 | #include <linux/mount.h> | 15 | #include <linux/mount.h> |
16 | #include <linux/magic.h> | ||
16 | #include <linux/pipe_fs_i.h> | 17 | #include <linux/pipe_fs_i.h> |
17 | #include <linux/uio.h> | 18 | #include <linux/uio.h> |
18 | #include <linux/highmem.h> | 19 | #include <linux/highmem.h> |