From: Sunil Mushran Date: Wed, 11 Oct 2006 19:23:02 +0000 (-0700) Subject: ocfs2: remove spurious d_count check in ocfs2_rename() X-Git-Tag: v2.6.19-rc3~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=711a40fcaa83bfad87736544b69f6fdd6527482d;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Mark Fasheh --- 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