mm, page_alloc: fail has_unmovable_pages when seeing reserved pages
[sfrench/cifs-2.6.git] / mm / page_alloc.c
index 755f35f4bc8badbe9c587f7b4d7a1c0a4aa7ff92..e6106d7e9eb04d3460692985167811faf943b8e1 100644 (file)
@@ -7383,6 +7383,9 @@ bool has_unmovable_pages(struct zone *zone, struct page *page, int count,
 
                page = pfn_to_page(check);
 
 
                page = pfn_to_page(check);
 
+               if (PageReserved(page))
+                       return true;
+
                /*
                 * Hugepages are not in LRU lists, but they're movable.
                 * We need not scan over tail pages bacause we don't
                /*
                 * Hugepages are not in LRU lists, but they're movable.
                 * We need not scan over tail pages bacause we don't