patch-2.1.131 linux/fs/msdos/namei.c

Next file: linux/fs/namei.c
Previous file: linux/fs/minix/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.130/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -452,8 +452,7 @@
 	if (res)
 		goto rmdir_done;
 	res = -EBUSY;
-	shrink_dcache_parent(dentry);
-	if (dentry->d_count > 1) {
+	if (!list_empty(&dentry->d_hash)) {
 #ifdef MSDOS_DEBUG
 printk("msdos_rmdir: %s/%s busy, d_count=%d\n",
 dentry->d_parent->d_name.name, dentry->d_name.name, dentry->d_count);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov