2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/arch
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
..
alpha mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
arm mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
avr32 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
blackfin mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
cris mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
frv mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
h8300 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
ia64 page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
m32r page allocator: use allocation flags as an index to the zone watermark 2009-06-16 19:47:35 -07:00
m68k mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
m68knommu mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
microblaze Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic 2009-06-12 18:15:51 -07:00
mips mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
mn10300 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
parisc mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
powerpc page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
s390 mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
sh mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
sparc mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
um mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
x86 page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
xtensa mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
.gitignore
Kconfig mutex: have non-spinning mutexes on s390 by default 2009-04-09 19:28:24 +02:00