mm: handling Non-LRU pages returned by vm_normal_pages
[linux-2.6-microblaze.git] / mm / mlock.c
index 716caf8..b14e929 100644 (file)
@@ -333,7 +333,7 @@ static int mlock_pte_range(pmd_t *pmd, unsigned long addr,
                if (!pte_present(*pte))
                        continue;
                page = vm_normal_page(vma, addr, *pte);
-               if (!page)
+               if (!page || is_zone_device_page(page))
                        continue;
                if (PageTransCompound(page))
                        continue;