Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754402Ab1DZKvw (ORCPT ); Tue, 26 Apr 2011 06:51:52 -0400 Received: from static-87-79-237-121.netcologne.de ([87.79.237.121]:2518 "EHLO herc.mirbsd.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753907Ab1DZKvv convert rfc822-to-8bit (ORCPT ); Tue, 26 Apr 2011 06:51:51 -0400 Date: Tue, 26 Apr 2011 10:50:13 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: Michael Schmitz cc: David Rientjes , Geert Uytterhoeven , Andrew Morton , Roman Zippel , linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, schwab@linux-m68k.org Subject: Re: [patch] m68k, mm: set all online nodes in N_NORMAL_MEMORY In-Reply-To: <4DB63349.3070808@gmail.com> Message-ID: References: <1303317178.2587.30.camel@mulgrave.site> <20110421220351.9180.A69D9226@jp.fujitsu.com> <4DB3840F.3060503@gmail.com> <4DB63349.3070808@gmail.com> X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 32 Michael Schmitz dixit: > be done unconditionally since information about present memory has not > yet > been recorded. > If N_NORMAL_MEMORY is not accurate, slub may encounter > errors since it Hrm… > @@ -300,6 +300,8 @@ void __init paging_init(void) > zones_size[ZONE_DMA] = m68k_memory[i].size >> PAGE_SHIFT; > free_area_init_node(i, zones_size, > m68k_memory[i].addr >> PAGE_SHIFT, NULL); > + if (node_present_pages(i)) > + node_set_state(i, N_NORMAL_MEMORY); > } > } No, this has whitespace problems (tabs are expanded to spaces). bye, //mirabilos -- 13:47⎜ if i were omnipotent, i would divide by zero all day long ;) (thinking about http://lobacevski.tumblr.com/post/3260866481 by waga) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/