patch-1.3.60 linux/mm/vmscan.c

Next file: linux/net/Changes
Previous file: linux/mm/swapfile.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -85,7 +85,7 @@
 		return 0;
 
 	page_map = mem_map + MAP_NR(page);
-	if (page_map->reserved)
+	if (page_map->reserved || page_map->locked)
 		return 0;
 	/* Deal with page aging.  Pages age from being unused; they
 	 * rejuvinate on being accessed.  Only swap old pages (age==0

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