Commit 711a40fc authored by Sunil Mushran's avatar Sunil Mushran Committed by Mark Fasheh

ocfs2: remove spurious d_count check in ocfs2_rename()

This was causing some folks to incorrectly get -EBUSY during rename.
Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 79cd22d3
...@@ -1085,14 +1085,6 @@ static int ocfs2_rename(struct inode *old_dir, ...@@ -1085,14 +1085,6 @@ static int ocfs2_rename(struct inode *old_dir,
BUG(); BUG();
} }
if (atomic_read(&old_dentry->d_count) > 2) {
shrink_dcache_parent(old_dentry);
if (atomic_read(&old_dentry->d_count) > 2) {
status = -EBUSY;
goto bail;
}
}
/* Assume a directory heirarchy thusly: /* Assume a directory heirarchy thusly:
* a/b/c * a/b/c
* a/d * a/d
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment