diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/tiny-shmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index d17cb6f6ab10..8d7a27a6335c 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c | |||
@@ -80,6 +80,12 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) | |||
80 | inode->i_nlink = 0; /* It is unlinked */ | 80 | inode->i_nlink = 0; /* It is unlinked */ |
81 | init_file(file, shm_mnt, dentry, FMODE_WRITE | FMODE_READ, | 81 | init_file(file, shm_mnt, dentry, FMODE_WRITE | FMODE_READ, |
82 | &ramfs_file_operations); | 82 | &ramfs_file_operations); |
83 | |||
84 | #ifndef CONFIG_MMU | ||
85 | error = ramfs_nommu_expand_for_mapping(inode, size); | ||
86 | if (error) | ||
87 | goto close_file; | ||
88 | #endif | ||
83 | return file; | 89 | return file; |
84 | 90 | ||
85 | close_file: | 91 | close_file: |