--- a/mm/internal.h~mm-page_alloc-use-ac-high_zoneidx-for-classzone_idx +++ a/mm/internal.h @@ -144,7 +144,7 @@ struct alloc_context { bool spread_dirty_pages; }; -#define ac_classzone_idx(ac) zonelist_zone_idx(ac->preferred_zoneref) +#define ac_classzone_idx(ac) (ac->high_zoneidx) /* * Locate the struct page for both the matching buddy in our