* [PATCH] zone_to_nid: One additional case
@ 2006-09-12 0:19 Christoph Lameter
0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2006-09-12 0:19 UTC (permalink / raw)
To: akpm; +Cc: linux-mm
I found another situation where one can use zone_to_nid to clarify
the source.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Index: linux-2.6.18-rc6-mm1/mm/oom_kill.c
===================================================================
--- linux-2.6.18-rc6-mm1.orig/mm/oom_kill.c 2006-09-08 06:43:05.000000000 -0500
+++ linux-2.6.18-rc6-mm1/mm/oom_kill.c 2006-09-11 17:37:40.079357973 -0500
@@ -177,8 +177,7 @@
for (z = zonelist->zones; *z; z++)
if (cpuset_zone_allowed(*z, gfp_mask))
- node_clear((*z)->zone_pgdat->node_id,
- nodes);
+ node_clear(zone_to_nid(*z), nodes);
else
return CONSTRAINT_CPUSET;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-12 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-12 0:19 [PATCH] zone_to_nid: One additional case Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox