Message ID | 20230927094401.68205-1-shikemeng@huaweicloud.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm/page_alloc: correct start page when guard page debug is enabled | expand |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 191e552a4c83..e18e0e20eff8 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6691,6 +6691,7 @@ static void break_down_buddy_pages(struct zone *zone, struct page *page, next_page = page; current_buddy = page + size; } + page = next_page; if (set_page_guard(zone, current_buddy, high, migratetype)) continue; @@ -6698,7 +6699,6 @@ static void break_down_buddy_pages(struct zone *zone, struct page *page, if (current_buddy != target) { add_to_free_list(current_buddy, zone, high, migratetype); set_buddy_order(current_buddy, high); - page = next_page; } } }