diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-09-16 03:28:16 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-09-16 03:28:16 +0400 |
commit | 7622d4905a038961da6b1c6c3fe4be6c3dad7ef9 (patch) | |
tree | cce9f4bc0ef2de31cee8e06e2cd6358dd51fa9c5 /mm/memory.c | |
parent | 5b49ab3e03f68eb49db4bce6290e5707b7f6c6f3 (diff) | |
parent | 9e82bf014195d6f0054982c463575cdce24292be (diff) | |
download | linux-7622d4905a038961da6b1c6c3fe4be6c3dad7ef9.tar.xz |
Merge tag 'v3.17-rc5' from upstream
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/memory.c b/mm/memory.c index ab3537bcfed2..adeac306610f 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -751,7 +751,7 @@ struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn = pte_pfn(pte); if (HAVE_PTE_SPECIAL) { - if (likely(!pte_special(pte) || pte_numa(pte))) + if (likely(!pte_special(pte))) goto check_pfn; if (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP)) return NULL; @@ -777,15 +777,14 @@ struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr, } } + if (is_zero_pfn(pfn)) + return NULL; check_pfn: if (unlikely(pfn > highest_memmap_pfn)) { print_bad_pte(vma, addr, pte, NULL); return NULL; } - if (is_zero_pfn(pfn)) - return NULL; - /* * NOTE! We still have PageReserved() pages in the page tables. * eg. VDSO mappings can cause them to exist. |