diff options
author | Mel Gorman <mgorman@suse.de> | 2015-02-12 17:58:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 21:54:08 -0500 |
commit | 4d9424669946532be754a6e116618dcb58430cb4 (patch) | |
tree | ccebf7f5dbb8773bb774551d21cd95d0f30b6766 /mm/mprotect.c | |
parent | 842915f56667f9eebd85932f08c79565148c26d6 (diff) |
mm: convert p[te|md]_mknonnuma and remaining page table manipulations
With PROT_NONE, the traditional page table manipulation functions are
sufficient.
[andre.przywara@arm.com: fix compiler warning in pmdp_invalidate()]
[akpm@linux-foundation.org: fix build with STRICT_MM_TYPECHECKS]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com>
Tested-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dave Jones <davej@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r-- | mm/mprotect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c index 44ffa698484d..76824d73380d 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c | |||
@@ -142,7 +142,7 @@ static inline unsigned long change_pmd_range(struct vm_area_struct *vma, | |||
142 | split_huge_page_pmd(vma, addr, pmd); | 142 | split_huge_page_pmd(vma, addr, pmd); |
143 | else { | 143 | else { |
144 | int nr_ptes = change_huge_pmd(vma, pmd, addr, | 144 | int nr_ptes = change_huge_pmd(vma, pmd, addr, |
145 | newprot, prot_numa); | 145 | newprot); |
146 | 146 | ||
147 | if (nr_ptes) { | 147 | if (nr_ptes) { |
148 | if (nr_ptes == HPAGE_PMD_NR) { | 148 | if (nr_ptes == HPAGE_PMD_NR) { |