diff options
author | Mel Gorman <mgorman@suse.de> | 2012-10-25 08:16:32 -0400 |
---|---|---|
committer | Mel Gorman <mgorman@suse.de> | 2012-12-11 09:42:44 -0500 |
commit | 4b10e7d562c90d0a72f324832c26653947a07381 (patch) | |
tree | 733e0fc3ac3fdfe27a312bc72e4ffb07bbf0aa56 /include/linux/huge_mm.h | |
parent | b24f53a0bea38b266d219ee651b22dba727c44ae (diff) |
mm: mempolicy: Implement change_prot_numa() in terms of change_protection()
This patch converts change_prot_numa() to use change_protection(). As
pte_numa and friends check the PTE bits directly it is necessary for
change_protection() to use pmd_mknuma(). Hence the required
modifications to change_protection() are a little clumsy but the
end result is that most of the numa page table helpers are just one or
two instructions.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'include/linux/huge_mm.h')
-rw-r--r-- | include/linux/huge_mm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index dabb5108d6c0..027ad04ef3a8 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h | |||
@@ -27,7 +27,8 @@ extern int move_huge_pmd(struct vm_area_struct *vma, | |||
27 | unsigned long new_addr, unsigned long old_end, | 27 | unsigned long new_addr, unsigned long old_end, |
28 | pmd_t *old_pmd, pmd_t *new_pmd); | 28 | pmd_t *old_pmd, pmd_t *new_pmd); |
29 | extern int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, | 29 | extern int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, |
30 | unsigned long addr, pgprot_t newprot); | 30 | unsigned long addr, pgprot_t newprot, |
31 | int prot_numa); | ||
31 | 32 | ||
32 | enum transparent_hugepage_flag { | 33 | enum transparent_hugepage_flag { |
33 | TRANSPARENT_HUGEPAGE_FLAG, | 34 | TRANSPARENT_HUGEPAGE_FLAG, |