mm: teach core mm about pte markers
[linux-2.6-block.git] / mm / mincore.c
index f4f627325e12d0cee8fecf74ca6e5adc13caf76b..fa200c14185fc8a5c2733f8f2b7cc771d858f011 100644 (file)
@@ -122,7 +122,8 @@ static int mincore_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
        for (; addr != end; ptep++, addr += PAGE_SIZE) {
                pte_t pte = *ptep;
 
-               if (pte_none(pte))
+               /* We need to do cache lookup too for pte markers */
+               if (pte_none_mostly(pte))
                        __mincore_unmapped_range(addr, addr + PAGE_SIZE,
                                                 vma, vec);
                else if (pte_present(pte))