Skip to content

Commit

Permalink
ramfs: move RAMFS_MAGIC to include/linux/magic.h
Browse files Browse the repository at this point in the history
initramfs userspace likes to use this magic number.

Cc: Hugh Dickins <[email protected]>
Signed-off-by: maximilian attems <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
brainflux authored and torvalds committed Sep 23, 2009
1 parent 0d4c36a commit a7e3108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions fs/ramfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@
#include <linux/ramfs.h>
#include <linux/sched.h>
#include <linux/parser.h>
#include <linux/magic.h>
#include <asm/uaccess.h>
#include "internal.h"

/* some random number */
#define RAMFS_MAGIC 0x858458f6

#define RAMFS_DEFAULT_MODE 0755

static const struct super_operations ramfs_ops;
Expand Down
1 change: 1 addition & 0 deletions include/linux/magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define SYSFS_MAGIC 0x62656572
#define SECURITYFS_MAGIC 0x73636673
#define SELINUX_MAGIC 0xf97cff8c
#define RAMFS_MAGIC 0x858458f6 /* some random number */
#define TMPFS_MAGIC 0x01021994
#define HUGETLBFS_MAGIC 0x958458f6 /* some random number */
#define SQUASHFS_MAGIC 0x73717368
Expand Down

0 comments on commit a7e3108

Please sign in to comment.