mm: change alloc_pages_vma to pass down the policy node for local policy
authorAndi Kleen <ak@linux.intel.com>
Sat, 5 Mar 2011 01:36:29 +0000 (17:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 5 Mar 2011 01:53:39 +0000 (17:53 -0800)
commit2f5f9486f8c12e3aa40fe3775a18cb14efc5cea2
tree362c21544db1bc65ffb65abf9f2b41b63621a124
parentb8bc1dd39722f7c306435d0682e9bf81abf52105
mm: change alloc_pages_vma to pass down the policy node for local policy

Currently alloc_pages_vma() always uses the local node as policy node for
the LOCAL policy.  Pass this node down as an argument instead.

No behaviour change from this patch, but will be needed for followons.

Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h
mm/huge_memory.c
mm/mempolicy.c