patch-2.4.26 linux-2.4.26/mm/filemap.c

Next file: linux-2.4.26/mm/mremap.c
Previous file: linux-2.4.26/lib/crc32.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/mm/filemap.c linux-2.4.26/mm/filemap.c
@@ -1346,7 +1346,7 @@
 	while (ahead < max_ahead) {
 		unsigned long ra_index = raend + ahead + 1;
 
-		if (ra_index > end_index)
+		if (ra_index >= end_index)
 			break;
 		if (page_cache_read(filp, ra_index) < 0)
 			break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)