linux/arch/m32r/mm
Mel Gorman 418589663d page allocator: use allocation flags as an index to the zone watermark
ALLOC_WMARK_MIN, ALLOC_WMARK_LOW and ALLOC_WMARK_HIGH determin whether
pages_min, pages_low or pages_high is used as the zone watermark when
allocating the pages.  Two branches in the allocator hotpath determine
which watermark to use.

This patch uses the flags as an array index into a watermark array that is
indexed with WMARK_* defines accessed via helpers.  All call sites that
use zone->pages_* are updated to use the helpers for accessing the values
and the array offsets for setting.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-16 19:47:35 -07:00
..
cache.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
discontig.c page allocator: use allocation flags as an index to the zone watermark 2009-06-16 19:47:35 -07:00
extable.c [PATCH] m32r: Cleanup arch/m32r/mm/extable.c 2005-06-21 19:07:31 -07:00
fault-nommu.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
fault.c pid namespaces: define is_global_init() and is_container_init() 2007-10-19 11:53:37 -07:00
init.c m32r: use generic show_mem() 2008-07-26 12:00:11 -07:00
ioremap-nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ioremap.c [PATCH] Generic ioremap_page_range: m32r conversion 2006-10-01 00:39:31 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmu.S m32r: fix tme_handler to check _PAGE_PRESENT bit 2007-05-11 08:29:33 -07:00
page.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00