patch-2.1.95 linux/fs/dcache.c

Next file: linux/fs/proc/root.c
Previous file: linux/drivers/scsi/u14-34f.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.94/linux/fs/dcache.c linux/fs/dcache.c
@@ -784,7 +784,7 @@
 
 	error = -ENOENT;
 	/* Has the current directory has been unlinked? */
-	if (pwd->d_parent != pwd && list_empty(&pwd->d_hash)) {
+	if (pwd->d_parent == pwd || !list_empty(&pwd->d_hash)) {
 		char *page = (char *) __get_free_page(GFP_USER);
 		error = -ENOMEM;
 		if (page) {

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