projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9d705
)
mm: numa: split_huge_page: transfer the NUMA type from the pmd to the pte
author
Andrea Arcangeli
<
[email protected]
>
Wed, 3 Oct 2012 23:51:06 +0000
(
01:51
+0200)
committer
Mel Gorman
<
[email protected]
>
Tue, 11 Dec 2012 14:42:38 +0000
(14:42 +0000)
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]
>
mm/huge_memory.c
patch
|
blob
|
history
diff --git
a/mm/huge_memory.c
b/mm/huge_memory.c
index 35c66a269bccca8b88fc52485568b19b86e06264..cd24aa562144a002363b14a47febdf4611db83ca 100644
(file)
--- a/
mm/huge_memory.c
+++ b/
mm/huge_memory.c
@@
-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);