|
@@ -2425,8 +2425,8 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
|
|
|
unsigned long lru_pages = 0;
|
|
|
|
|
|
nodes_clear(shrink->nodes_to_scan);
|
|
|
- for_each_zone_zonelist(zone, z, zonelist,
|
|
|
- gfp_zone(sc->gfp_mask)) {
|
|
|
+ for_each_zone_zonelist_nodemask(zone, z, zonelist,
|
|
|
+ gfp_zone(sc->gfp_mask), sc->nodemask) {
|
|
|
if (!cpuset_zone_allowed_hardwall(zone, GFP_KERNEL))
|
|
|
continue;
|
|
|
|