diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-10-15 22:03:09 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-10-15 22:03:09 +0200 |
commit | fc3718918f13ad72827d62d36ea0f5fb55090644 (patch) | |
tree | 4f9551256e02d08be37bab137f3d94182a67504c /fs/ocfs2/refcounttree.c | |
parent | ocfs2: Add a mount option "coherency=*" to handle cluster coherency for O_DIR... (diff) | |
parent | ocfs2/cluster: Release debugfs file elapsed_time_in_ms (diff) | |
download | linux-fc3718918f13ad72827d62d36ea0f5fb55090644.tar.xz linux-fc3718918f13ad72827d62d36ea0f5fb55090644.zip |
Merge branch 'globalheartbeat-2' of git://oss.oracle.com/git/smushran/linux-2.6 into ocfs2-merge-window
Conflicts:
fs/ocfs2/ocfs2.h
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, goto out; } - mutex_lock(&new_inode->i_mutex); - ret = ocfs2_inode_lock(new_inode, &new_bh, 1); + mutex_lock_nested(&new_inode->i_mutex, I_MUTEX_CHILD); + ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1, + OI_LS_REFLINK_TARGET); if (ret) { mlog_errno(ret); goto out_unlock; |