diff options
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r-- | mm/oom_kill.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f9b82ad5047f..41b4e362221d 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -177,14 +177,7 @@ static inline int constrained_alloc(struct zonelist *zonelist, gfp_t gfp_mask) | |||
177 | { | 177 | { |
178 | #ifdef CONFIG_NUMA | 178 | #ifdef CONFIG_NUMA |
179 | struct zone **z; | 179 | struct zone **z; |
180 | nodemask_t nodes; | 180 | nodemask_t nodes = node_states[N_HIGH_MEMORY]; |
181 | int node; | ||
182 | |||
183 | nodes_clear(nodes); | ||
184 | /* node has memory ? */ | ||
185 | for_each_online_node(node) | ||
186 | if (NODE_DATA(node)->node_present_pages) | ||
187 | node_set(node, nodes); | ||
188 | 181 | ||
189 | for (z = zonelist->zones; *z; z++) | 182 | for (z = zonelist->zones; *z; z++) |
190 | if (cpuset_zone_allowed_softwall(*z, gfp_mask)) | 183 | if (cpuset_zone_allowed_softwall(*z, gfp_mask)) |