diff options
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/shmem.c | 4 | ||||
| -rw-r--r-- | mm/tiny-shmem.c | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 38bc3334f263..a4161abb9e76 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -2252,9 +2252,7 @@ static int __init init_tmpfs(void) | |||
| 2252 | printk(KERN_ERR "Could not register tmpfs\n"); | 2252 | printk(KERN_ERR "Could not register tmpfs\n"); |
| 2253 | goto out2; | 2253 | goto out2; |
| 2254 | } | 2254 | } |
| 2255 | #ifdef CONFIG_TMPFS | 2255 | |
| 2256 | devfs_mk_dir("shm"); | ||
| 2257 | #endif | ||
| 2258 | shm_mnt = vfs_kern_mount(&tmpfs_fs_type, MS_NOUSER, | 2256 | shm_mnt = vfs_kern_mount(&tmpfs_fs_type, MS_NOUSER, |
| 2259 | tmpfs_fs_type.name, NULL); | 2257 | tmpfs_fs_type.name, NULL); |
| 2260 | if (IS_ERR(shm_mnt)) { | 2258 | if (IS_ERR(shm_mnt)) { |
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index f9d6a9cc91c4..11ab99b8c61f 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c | |||
| @@ -33,9 +33,6 @@ static int __init init_tmpfs(void) | |||
| 33 | { | 33 | { |
| 34 | BUG_ON(register_filesystem(&tmpfs_fs_type) != 0); | 34 | BUG_ON(register_filesystem(&tmpfs_fs_type) != 0); |
| 35 | 35 | ||
| 36 | #ifdef CONFIG_TMPFS | ||
| 37 | devfs_mk_dir("shm"); | ||
| 38 | #endif | ||
| 39 | shm_mnt = kern_mount(&tmpfs_fs_type); | 36 | shm_mnt = kern_mount(&tmpfs_fs_type); |
| 40 | BUG_ON(IS_ERR(shm_mnt)); | 37 | BUG_ON(IS_ERR(shm_mnt)); |
| 41 | 38 | ||
