/* * When interpreting these watermarks, just keep in mind that: * zone->pages_min == (zone->pages_min * 4) / 4; */ zone->pages_low   = (zone->pages_min * 5) / 4; zone->pages_high  = (zone->pages_min * 6) / 4; 
zone->pages_low   = zone->pages_min + tmp / 4; zone->pages_high  = zone->pages_min + tmp / 2; 
void setup_per_zone_pages_min(void){	unsigned long pages_min = min_free_kbytes >> (PAGE_SHIFT - 10);	unsigned long lowmem_pages = 0;	struct zone *zone;	unsigned long flags;	/* Calculate total number of !ZONE_HIGHMEM pages */	for_each_zone(zone) {		if (!is_highmem(zone))			lowmem_pages += zone->present_pages;	}	for_each_zone(zone) {		spin_lock_irqsave(&zone->lru_lock, flags);		if (is_highmem(zone)) {			/*			 * Often, highmem doesn't need to reserve any pages.			 * But the pages_min/low/high values are also used for			 * batching up page reclaim activity so we need a			 * decent value here.			 */			int min_pages;			min_pages = zone->present_pages / 1024;			if (min_pages < SWAP_CLUSTER_MAX)				min_pages = SWAP_CLUSTER_MAX;			if (min_pages > 128)				min_pages = 128;			zone->pages_min = min_pages;		} else {			/* if it's a lowmem zone, reserve a number of pages			 * proportionate to the zone's size.			 */			zone->pages_min = (pages_min * zone->present_pages) /			                   lowmem_pages;		}		/*		 * When interpreting these watermarks, just keep in mind that:		 * zone->pages_min == (zone->pages_min * 4) / 4;		 */		zone->pages_low   = (zone->pages_min * 5) / 4;		zone->pages_high  = (zone->pages_min * 6) / 4;		spin_unlock_irqrestore(&zone->lru_lock, flags);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/669ed17521b9b78cdbeac8a53c30599aca9527ce/page_alloc.c/clean/mm/page_alloc.c