]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/namei.c
[PATCH] sys_pselect7 vs compat_sys_pselect7 uaccess error handling
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / namei.c
index 259155f0eb2e97ce20a39b7d990ee497b59a5725..a57b751d4f40e3fad3cf7bc1df95b09816f8307c 100644 (file)
@@ -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