summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/page_owner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_owner.c b/mm/page_owner.c
index ac3d8d129974..438768c092ac 100644
--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -301,6 +301,9 @@ static void init_pages_in_zone(pg_data_t *pgdat, struct zone *zone)
page = pfn_to_page(pfn);
+ if (page_zone(page) != zone)
+ continue;
+
/*
* We are safe to check buddy flag and order, because
* this is init stage and only single thread runs.