mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] quieten zone_pcp_init
@ 2006-03-25  6:41 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2006-03-25  6:41 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel


In zone_pcp_init we print out all zones even if they are empty:

On node 0 totalpages: 245760
  DMA zone: 245760 pages, LIFO batch:31
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0

To conserve dmesg space why not print only the non zero zones.

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Index: build/mm/page_alloc.c
===================================================================
--- build.orig/mm/page_alloc.c	2006-03-25 16:26:58.000000000 +1100
+++ build/mm/page_alloc.c	2006-03-25 16:27:06.000000000 +1100
@@ -2029,8 +2029,9 @@ static __meminit void zone_pcp_init(stru
 		setup_pageset(zone_pcp(zone,cpu), batch);
 #endif
 	}
-	printk(KERN_DEBUG "  %s zone: %lu pages, LIFO batch:%lu\n",
-		zone->name, zone->present_pages, batch);
+	if (zone->present_pages)
+		printk(KERN_DEBUG "  %s zone: %lu pages, LIFO batch:%lu\n",
+			zone->name, zone->present_pages, batch);
 }
 
 static __meminit void init_currently_empty_zone(struct zone *zone,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-25  6:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-25  6:41 [PATCH] quieten zone_pcp_init Anton Blanchard

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

all inboxes | Powered by JetHome®