patch-2.2.0-pre5 linux/fs/vfat/namei.c

Next file: linux/include/asm-m68k/init.h
Previous file: linux/fs/ufs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -1549,8 +1549,10 @@
 	res = -EBUSY;
 	if (list_empty(&dentry->d_hash)) {
 		res = vfat_rmdirx(dir, dentry);
-		if (res >= 0)
+		if (res >= 0) {
 			drop_replace_inodes(dentry, NULL);
+			d_delete(dentry);
+		}
 	}
 	return res;
 }

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