|
@@ -2771,7 +2771,7 @@ zonelist_scan:
|
|
|
|
|
|
mark = zone->watermark[alloc_flags & ALLOC_WMARK_MASK];
|
|
|
if (!zone_watermark_fast(zone, order, mark,
|
|
|
- ac->classzone_idx, alloc_flags)) {
|
|
|
+ ac_classzone_idx(ac), alloc_flags)) {
|
|
|
int ret;
|
|
|
|
|
|
/* Checked here to keep the fast path fast */
|
|
@@ -2794,7 +2794,7 @@ zonelist_scan:
|
|
|
default:
|
|
|
/* did we reclaim enough */
|
|
|
if (zone_watermark_ok(zone, order, mark,
|
|
|
- ac->classzone_idx, alloc_flags))
|
|
|
+ ac_classzone_idx(ac), alloc_flags))
|
|
|
goto try_this_zone;
|
|
|
|
|
|
continue;
|
|
@@ -3114,7 +3114,7 @@ static void wake_all_kswapds(unsigned int order, const struct alloc_context *ac)
|
|
|
|
|
|
for_each_zone_zonelist_nodemask(zone, z, ac->zonelist,
|
|
|
ac->high_zoneidx, ac->nodemask)
|
|
|
- wakeup_kswapd(zone, order, zonelist_zone_idx(ac->preferred_zoneref));
|
|
|
+ wakeup_kswapd(zone, order, ac_classzone_idx(ac));
|
|
|
}
|
|
|
|
|
|
static inline unsigned int
|
|
@@ -3422,8 +3422,6 @@ retry_cpuset:
|
|
|
goto no_zone;
|
|
|
}
|
|
|
|
|
|
- ac.classzone_idx = zonelist_zone_idx(ac.preferred_zoneref);
|
|
|
-
|
|
|
/* First allocation attempt */
|
|
|
page = get_page_from_freelist(alloc_mask, order, alloc_flags, &ac);
|
|
|
if (likely(page))
|