diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 1b85217b528c..159e6c760d83 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1365,15 +1365,12 @@ unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *mem_cont, | |||
1365 | .mem_cgroup = mem_cont, | 1365 | .mem_cgroup = mem_cont, |
1366 | .isolate_pages = mem_cgroup_isolate_pages, | 1366 | .isolate_pages = mem_cgroup_isolate_pages, |
1367 | }; | 1367 | }; |
1368 | int node; | ||
1369 | struct zone **zones; | 1368 | struct zone **zones; |
1370 | int target_zone = gfp_zone(GFP_HIGHUSER_MOVABLE); | 1369 | int target_zone = gfp_zone(GFP_HIGHUSER_MOVABLE); |
1371 | 1370 | ||
1372 | for_each_online_node(node) { | 1371 | zones = NODE_DATA(numa_node_id())->node_zonelists[target_zone].zones; |
1373 | zones = NODE_DATA(node)->node_zonelists[target_zone].zones; | 1372 | if (do_try_to_free_pages(zones, sc.gfp_mask, &sc)) |
1374 | if (do_try_to_free_pages(zones, sc.gfp_mask, &sc)) | 1373 | return 1; |
1375 | return 1; | ||
1376 | } | ||
1377 | return 0; | 1374 | return 0; |
1378 | } | 1375 | } |
1379 | #endif | 1376 | #endif |