summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2008-10-07 20:00:12 +0200
committerJames Morris <jmorris@namei.org>2008-10-13 00:47:43 +0200
commit92562927826fceb2f8e69c89e28161b8c1e0b125 (patch)
treee44f22406ea4d3753a4834feed7e7d271da28ab8 /mm
parentMerge branch 'next' into for-linus (diff)
downloadlinux-92562927826fceb2f8e69c89e28161b8c1e0b125.tar.xz
linux-92562927826fceb2f8e69c89e28161b8c1e0b125.zip
integrity: special fs magic
Discussion on the mailing list questioned the use of these magic values in userspace, concluding these values are already exported to userspace via statfs and their correct/incorrect usage is left up to the userspace application. - Move special fs magic number definitions to magic.h - Add magic.h include Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Reviewed-by: James Morris <jmorris@namei.org> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/shmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 04fb4f1ab88e..bf66d0191baf 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -50,14 +50,12 @@
#include <linux/migrate.h>
#include <linux/highmem.h>
#include <linux/seq_file.h>
+#include <linux/magic.h>
#include <asm/uaccess.h>
#include <asm/div64.h>
#include <asm/pgtable.h>
-/* This magic number is used in glibc for posix shared memory */
-#define TMPFS_MAGIC 0x01021994
-
#define ENTRIES_PER_PAGE (PAGE_CACHE_SIZE/sizeof(unsigned long))
#define ENTRIES_PER_PAGEPAGE (ENTRIES_PER_PAGE*ENTRIES_PER_PAGE)
#define BLOCKS_PER_PAGE (PAGE_CACHE_SIZE/512)