Skip to content

Commit

Permalink
ocfs2: remove spurious d_count check in ocfs2_rename()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sunil Mushran authored and Mark Fasheh committed Oct 20, 2006
1 parent 79cd22d commit 711a40f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 711a40f

Please sign in to comment.