diff options
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
-rw-r--r-- | fs/ocfs2/refcounttree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c index a120cfcf69bf..b5f9160e93e9 100644 --- a/fs/ocfs2/refcounttree.c +++ b/fs/ocfs2/refcounttree.c | |||
@@ -4240,8 +4240,9 @@ static int __ocfs2_reflink(struct dentry *old_dentry, | |||
4240 | goto out; | 4240 | goto out; |
4241 | } | 4241 | } |
4242 | 4242 | ||
4243 | mutex_lock(&new_inode->i_mutex); | 4243 | mutex_lock_nested(&new_inode->i_mutex, I_MUTEX_CHILD); |
4244 | ret = ocfs2_inode_lock(new_inode, &new_bh, 1); | 4244 | ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, |
4245 | OI_LS_REFLINK_TARGET); | ||
4245 | if (ret) { | 4246 | if (ret) { |
4246 | mlog_errno(ret); | 4247 | mlog_errno(ret); |
4247 | goto out_unlock; | 4248 | goto out_unlock; |