]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/proc/task_mmu.c
mm: add !pte_present() check on existing hugetlb_entry callbacks
[karo-tx-linux.git] / fs / proc / task_mmu.c
index 442177b1119a4528b08210a56f5188b3ef1f2a20..c4b2646b6d7c66f7b1c37d6fbaf033cc5ccaa561 100644 (file)
@@ -1351,7 +1351,7 @@ static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask,
        struct numa_maps *md;
        struct page *page;
 
-       if (pte_none(*pte))
+       if (!pte_present(*pte))
                return 0;
 
        page = pte_page(*pte);