From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750778AbWEROXE (ORCPT ); Thu, 18 May 2006 10:23:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750843AbWEROXE (ORCPT ); Thu, 18 May 2006 10:23:04 -0400 Received: from 41.150.104.212.access.eclipse.net.uk ([212.104.150.41]:20135 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id S1750778AbWEROXD (ORCPT ); Thu, 18 May 2006 10:23:03 -0400 Date: Thu, 18 May 2006 15:21:04 +0100 To: Andrew Morton Cc: Andy Whitcroft , nickpiggin@yahoo.com.au, haveblue@us.ibm.com, bob.picco@hp.com, mingo@elte.hu, mbligh@mbligh.org, ak@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/2] zone init check and report unaligned zone boundaries fix Message-ID: <20060518142104.GA9407@shadowen.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline InReply-To: User-Agent: Mutt/1.5.11+cvs20060403 From: Andy Whitcroft Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org zone init check and report unaligned zone boundaries fix We are reporting bad boundaries for the first zone which is allowed to be missaligned because nodes are not allowed to be missaligned, and zones which have zero size. Cull them. Signed-off-by: Andy Whitcroft --- page_alloc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -upN reference/mm/page_alloc.c current/mm/page_alloc.c --- reference/mm/page_alloc.c +++ current/mm/page_alloc.c @@ -2223,7 +2223,8 @@ static void __meminit free_area_init_cor struct zone *zone = pgdat->node_zones + j; unsigned long size, realsize; - if (zone_boundary_align_pfn(zone_start_pfn) != zone_start_pfn) + if (zone_boundary_align_pfn(zone_start_pfn) != + zone_start_pfn && j != 0 && size != 0) printk(KERN_CRIT "node %d zone %s missaligned " "start pfn\n", nid, zone_names[j]);