diff options
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 234b834d5a97..35f55a0dbc4b 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -2316,11 +2316,11 @@ retry: | |||
2316 | inode->i_op = &ext4_file_inode_operations; | 2316 | inode->i_op = &ext4_file_inode_operations; |
2317 | inode->i_fop = &ext4_file_operations; | 2317 | inode->i_fop = &ext4_file_operations; |
2318 | ext4_set_aops(inode); | 2318 | ext4_set_aops(inode); |
2319 | d_tmpfile(dentry, inode); | ||
2319 | err = ext4_orphan_add(handle, inode); | 2320 | err = ext4_orphan_add(handle, inode); |
2320 | if (err) | 2321 | if (err) |
2321 | goto err_drop_inode; | 2322 | goto err_drop_inode; |
2322 | mark_inode_dirty(inode); | 2323 | mark_inode_dirty(inode); |
2323 | d_tmpfile(dentry, inode); | ||
2324 | unlock_new_inode(inode); | 2324 | unlock_new_inode(inode); |
2325 | } | 2325 | } |
2326 | if (handle) | 2326 | if (handle) |