patch-2.3.49 linux/mm/page_alloc.c

Next file: linux/mm/vmscan.c
Previous file: linux/mm/mmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -337,7 +337,7 @@
 	zone_t *zone;
 	int i;
 
-	sum = nr_lru_pages - atomic_read(&page_cache_size);
+	sum = nr_lru_pages;
 	for (i = 0; i < NUMNODES; i++)
 		for (zone = NODE_DATA(i)->node_zones; zone <= NODE_DATA(i)->node_zones+ZONE_NORMAL; zone++)
 			sum += zone->free_pages;

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