patch-1.3.87 linux/mm/vmscan.c

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

diff -u --recursive --new-file v1.3.86/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -83,11 +83,12 @@
 		return 0;
 
 	page_map = mem_map + MAP_NR(page);
-	if (page_map->reserved || page_map->locked ||
-	    (dma && !page_map->dma))
+	if (PageReserved(page_map)
+	    || PageLocked(page_map)
+	    || (dma && !PageDMA(page_map)))
 		return 0;
 	/* Deal with page aging.  Pages age from being unused; they
-	 * rejuvinate on being accessed.  Only swap old pages (age==0
+	 * rejuvenate on being accessed.  Only swap old pages (age==0
 	 * is oldest). */
 	if ((pte_dirty(pte) && delete_from_swap_cache(MAP_NR(page))) 
 	    || pte_young(pte))  {

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