patch-2.3.99-pre3 linux/mm/vmscan.c
Next file: linux/net/802/tr.c
Previous file: linux/mm/vmalloc.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Tue Mar 21 11:01:25 2000
-  Orig file: 
v2.3.99-pre2/linux/mm/vmscan.c
-  Orig date: 
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -45,7 +45,7 @@
 	if (!pte_present(pte))
 		goto out_failed;
 	page = pte_page(pte);
-	if (page-mem_map >= max_mapnr)
+	if ((page-mem_map >= max_mapnr) || PageReserved(page))
 		goto out_failed;
 
 	/* Don't look at this pte if it's been accessed recently. */
@@ -59,7 +59,7 @@
 		goto out_failed;
 	}
 
-	if (PageReserved(page) || PageLocked(page))
+	if (PageLocked(page))
 		goto out_failed;
 
 	/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)