aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index f010b22b1c44..5ac4d52e090f 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -2136,6 +2136,7 @@ int ocfs2_create_inode_in_orphan(struct inode *dir,
2136 if (status < 0) 2136 if (status < 0)
2137 mlog_errno(status); 2137 mlog_errno(status);
2138 2138
2139 insert_inode_hash(inode);
2139leave: 2140leave:
2140 if (status < 0 && did_quota_inode) 2141 if (status < 0 && did_quota_inode)
2141 vfs_dq_free_inode(inode); 2142 vfs_dq_free_inode(inode);
@@ -2284,7 +2285,6 @@ int ocfs2_mv_orphaned_inode_to_new(struct inode *dir,
2284 goto out_commit; 2285 goto out_commit;
2285 } 2286 }
2286 2287
2287 insert_inode_hash(inode);
2288 dentry->d_op = &ocfs2_dentry_ops; 2288 dentry->d_op = &ocfs2_dentry_ops;
2289 d_instantiate(dentry, inode); 2289 d_instantiate(dentry, inode);
2290 status = 0; 2290 status = 0;