linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Do not allocate pagesets for unpopulated zones. (fwd)
@ 2006-09-18 20:11 Christoph Lameter
  0 siblings, 0 replies; only message in thread
From: Christoph Lameter @ 2006-09-18 20:11 UTC (permalink / raw)
  To: linux-mm

My dyslexia hit linux-mm@vger.kernel.org again. sigh.

---------- Forwarded message ----------
Date: Mon, 18 Sep 2006 13:07:09 -0700 (PDT)
From: Christoph Lameter <christoph@engr.sgi.com>
Cc: linux-mm@vger.kernel.org
To: akpm@osdl.org
Subject: [PATCH] Do not allocate pagesets for unpopulated zones.

We do not need to allocate pagesets for unpopulated zones.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.18-rc6-mm2/mm/page_alloc.c
===================================================================
--- linux-2.6.18-rc6-mm2.orig/mm/page_alloc.c	2006-09-18 14:14:58.000000000 -0500
+++ linux-2.6.18-rc6-mm2/mm/page_alloc.c	2006-09-18 14:54:43.456849813 -0500
@@ -1903,6 +1903,9 @@ static int __cpuinit process_zones(int c
 
 	for_each_zone(zone) {
 
+		if (!populated_zone(zone))
+			continue;
+
 		zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset),
 					 GFP_KERNEL, cpu_to_node(cpu));
 		if (!zone_pcp(zone, cpu))

--
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-18 22:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-18 20:11 [PATCH] Do not allocate pagesets for unpopulated zones. (fwd) Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox