From 24dda078eb134d2ef7717c43421fcf61bb5330b8 Mon Sep 17 00:00:00 2001 From: Lee Schermerhorn Date: Mon, 30 Jul 2007 16:24:22 -0700 Subject: [PATCH] Memoryless nodes: drop one memoryless node boot warning get_pfn_range_for_nid() is called multiple times for each node at boot time. Each time, it will warn about nodes with no memory, resulting in boot messages like: Node 0 active with no memory Node 0 active with no memory Node 0 active with no memory Node 0 active with no memory Node 0 active with no memory Node 0 active with no memory On node 0 totalpages: 0 Node 0 active with no memory Node 0 active with no memory DMA zone: 0 pages used for memmap Node 0 active with no memory Node 0 active with no memory Normal zone: 0 pages used for memmap Node 0 active with no memory Node 0 active with no memory Movable zone: 0 pages used for memmap and so on for each memoryless node. We already have the "On node N totalpages: ..." and other related messages, so drop the "Node N active with no memory" warnings. Signed-off-by: Lee Schermerhorn --- mm/page_alloc.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) Index: linux-2.6/mm/page_alloc.c =================================================================== --- linux-2.6.orig/mm/page_alloc.c 2007-08-03 11:37:08.000000000 -0700 +++ linux-2.6/mm/page_alloc.c 2007-08-03 11:38:05.000000000 -0700 @@ -2688,10 +2688,8 @@ void __meminit get_pfn_range_for_nid(uns *end_pfn = max(*end_pfn, early_node_map[i].end_pfn); } - if (*start_pfn == -1UL) { - printk(KERN_WARNING "Node %u active with no memory\n", nid); + if (*start_pfn == -1UL) *start_pfn = 0; - } /* Push the node boundaries out if requested */ account_node_boundary(nid, start_pfn, end_pfn);