summaryrefslogtreecommitdiff
path: root/mm/memory.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-09-16 03:28:16 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-09-16 03:28:16 +0400
commit7622d4905a038961da6b1c6c3fe4be6c3dad7ef9 (patch)
treecce9f4bc0ef2de31cee8e06e2cd6358dd51fa9c5 /mm/memory.c
parent5b49ab3e03f68eb49db4bce6290e5707b7f6c6f3 (diff)
parent9e82bf014195d6f0054982c463575cdce24292be (diff)
downloadlinux-7622d4905a038961da6b1c6c3fe4be6c3dad7ef9.tar.xz
Merge tag 'v3.17-rc5' from upstream
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c7
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.