patch-1.3.95 linux/mm/filemap.c

Next file: linux/net/ipv4/ip_output.c
Previous file: linux/lib/string.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.94/linux/mm/filemap.c linux/mm/filemap.c
@@ -686,8 +686,11 @@
 		 */
 read_page:
 		error = inode->i_op->readpage(inode, page);
-		if (!error)
-			goto found_page;
+		if (!error) {
+			if (!PageError(page))
+				goto found_page;
+			error = -EIO;
+		}
 		free_page(addr);
 		break;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this