aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 6fa20a84daa0..289dbb0a6fd6 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2543,11 +2543,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
2543 d_instantiate(dentry, inode); 2543 d_instantiate(dentry, inode);
2544 inode->i_size = size; 2544 inode->i_size = size;
2545 inode->i_nlink = 0; /* It is unlinked */ 2545 inode->i_nlink = 0; /* It is unlinked */
2546 file->f_path.mnt = mntget(shm_mnt); 2546 init_file(file, shm_mnt, dentry, FMODE_WRITE | FMODE_READ,
2547 file->f_path.dentry = dentry; 2547 &shmem_file_operations);
2548 file->f_mapping = inode->i_mapping;
2549 file->f_op = &shmem_file_operations;
2550 file->f_mode = FMODE_WRITE | FMODE_READ;
2551 return file; 2548 return file;
2552 2549
2553close_file: 2550close_file: