aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/namei.c')
-rw-r--r--fs/nilfs2/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c
index d92e83905f01..d6aa8f4c804b 100644
--- a/fs/nilfs2/namei.c
+++ b/fs/nilfs2/namei.c
@@ -258,7 +258,6 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
258 inode->i_mapping->a_ops = &nilfs_aops; 258 inode->i_mapping->a_ops = &nilfs_aops;
259 259
260 inc_nlink(inode); 260 inc_nlink(inode);
261 mark_inode_dirty(inode);
262 261
263 err = nilfs_make_empty(inode, dir); 262 err = nilfs_make_empty(inode, dir);
264 if (err) 263 if (err)
@@ -268,6 +267,7 @@ static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
268 if (err) 267 if (err)
269 goto out_fail; 268 goto out_fail;
270 269
270 mark_inode_dirty(inode);
271 d_instantiate(dentry, inode); 271 d_instantiate(dentry, inode);
272out: 272out:
273 if (!err) 273 if (!err)