X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=mm%2Foom_kill.c;h=41b4e362221d943ba1759d9de3d740222f067c98;hb=ea3061d227816d00717446ac12b853d7ae04b4fe;hp=f9b82ad5047f7c7a175afc5c197108fecca48e84;hpb=440fdb53b4ae58602711b5b8c3a139ace2404dbb;p=linux-2.6 diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f9b82ad504..41b4e36222 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) { #ifdef CONFIG_NUMA struct zone **z; - nodemask_t nodes; - int node; - - nodes_clear(nodes); - /* node has memory ? */ - for_each_online_node(node) - if (NODE_DATA(node)->node_present_pages) - node_set(node, nodes); + nodemask_t nodes = node_states[N_HIGH_MEMORY]; for (z = zonelist->zones; *z; z++) if (cpuset_zone_allowed_softwall(*z, gfp_mask))