patch-2.4.3 linux/fs/nfs/dir.c
Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/ncpfs/mmap.c
Back to the patch index
Back to the overall index
-  Lines: 20
-  Date:
Thu Mar 15 09:56:07 2001
-  Orig file: 
v2.4.2/linux/fs/nfs/dir.c
-  Orig date: 
Wed Feb 21 18:20:40 2001
diff -u --recursive --new-file v2.4.2/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -321,7 +321,7 @@
 		desc->page = NULL;
 	}
 
-	page = page_cache_alloc();
+	page = alloc_page(GFP_HIGHUSER);
 	if (!page) {
 		status = -ENOMEM;
 		goto out;
@@ -1097,6 +1097,10 @@
 
 	if (!NFS_PROTO(inode)->access)
 		goto out;
+
+	if (error == -EROFS)
+		goto out;
+
 	/*
 	 * Trust UNIX mode bits except:
 	 *
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)