summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2006-10-11 12:23:02 -0700
committerMark Fasheh <mark.fasheh@oracle.com>2006-10-20 15:26:35 -0700
commit711a40fcaa83bfad87736544b69f6fdd6527482d (patch)
tree8a994dc00559c00f20ebc74d5b10ebe3024741e2 /fs
parent79cd22d3ac921b9209bf813c7e75e6b69e74896c (diff)
downloadop-kernel-dev-711a40fcaa83bfad87736544b69f6fdd6527482d.zip
op-kernel-dev-711a40fcaa83bfad87736544b69f6fdd6527482d.tar.gz
ocfs2: remove spurious d_count check in ocfs2_rename()
This was causing some folks to incorrectly get -EBUSY during rename. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/namei.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 259155f..a57b751 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -1085,14 +1085,6 @@ static int ocfs2_rename(struct inode *old_dir,
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:
* a/b/c
* a/d
OpenPOWER on IntegriCloud