aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 269d049294ab..154243f0a27c 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2232,14 +2232,12 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
2232 goto failed; 2232 goto failed;
2233 inode->i_uid = sbinfo->uid; 2233 inode->i_uid = sbinfo->uid;
2234 inode->i_gid = sbinfo->gid; 2234 inode->i_gid = sbinfo->gid;
2235 root = d_alloc_root(inode); 2235 root = d_make_root(inode);
2236 if (!root) 2236 if (!root)
2237 goto failed_iput; 2237 goto failed;
2238 sb->s_root = root; 2238 sb->s_root = root;
2239 return 0; 2239 return 0;
2240 2240
2241failed_iput:
2242 iput(inode);
2243failed: 2241failed:
2244 shmem_put_super(sb); 2242 shmem_put_super(sb);
2245 return err; 2243 return err;