Skip to content

Commit

Permalink
mm: numa: split_huge_page: transfer the NUMA type from the pmd to the…
Browse files Browse the repository at this point in the history
… pte

When we split a transparent hugepage, transfer the NUMA type from the
pmd to the pte if needed.

Signed-off-by: Andrea Arcangeli <[email protected]>
Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
  • Loading branch information
aagit authored and Mel Gorman committed Dec 11, 2012
1 parent 0b9d705 commit 1ba6e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,8 @@ static int __split_huge_page_map(struct page *page,
BUG_ON(page_mapcount(page) != 1);
if (!pmd_young(*pmd))
entry = pte_mkold(entry);
if (pmd_numa(*pmd))
entry = pte_mknuma(entry);
pte = pte_offset_map(&_pmd, haddr);
BUG_ON(!pte_none(*pte));
set_pte_at(mm, haddr, pte, entry);
Expand Down

0 comments on commit 1ba6e0b

Please sign in to comment.