Commit 19ee151e140daa5183c4984981801e542e0544fb
Committed by
Linus Torvalds
1 parent
236344d6b4
Exists in
master
and in
20 other branches
mm: preserve original node for transparent huge page copies
This makes a difference for LOCAL policy, where the node cannot be determined from the policy itself, but has to be gotten from the original page. 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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
mm/huge_memory.c
... | ... | @@ -799,8 +799,8 @@ |
799 | 799 | } |
800 | 800 | |
801 | 801 | for (i = 0; i < HPAGE_PMD_NR; i++) { |
802 | - pages[i] = alloc_page_vma(GFP_HIGHUSER_MOVABLE, | |
803 | - vma, address); | |
802 | + pages[i] = alloc_page_vma_node(GFP_HIGHUSER_MOVABLE, | |
803 | + vma, address, page_to_nid(page)); | |
804 | 804 | if (unlikely(!pages[i] || |
805 | 805 | mem_cgroup_newpage_charge(pages[i], mm, |
806 | 806 | GFP_KERNEL))) { |