summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5f948b46451e..896c6c63fe58 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2061,7 +2061,8 @@ void free_hot_cold_page(struct page *page, bool cold)
* excessively into the page allocator
*/
if (migratetype >= MIGRATE_PCPTYPES) {
- if (unlikely(is_migrate_isolate(migratetype))) {
+ if (unlikely(is_migrate_isolate(migratetype)) ||
+ is_migrate_cma(migratetype)) {
free_one_page(zone, page, pfn, 0, migratetype);
goto out;
}