From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from one.firstfloor.org (one.firstfloor.org [213.235.205.2]) by ozlabs.org (Postfix) with ESMTP id 522DDDE61B for ; Thu, 27 Mar 2008 09:31:17 +1100 (EST) Date: Wed, 26 Mar 2008 22:49:39 +0100 From: Andi Kleen To: Jon Tollefson Subject: Re: [PATCH 1/4] allow arch specific function for allocating gigantic pages Message-ID: <20080326214939.GB29105@one.firstfloor.org> References: <47EABE2D.7080400@linux.vnet.ibm.com> <47EABF09.6090302@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <47EABF09.6090302@linux.vnet.ibm.com> Cc: npiggin@suse.de, Adam Litke , linuxppc-dev , linux-kernel@vger.kernel.org, Linux Memory Management List , Andi Kleen , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Haven't reviewed it in detail, just noticed something. > @@ -614,6 +610,7 @@ static int __init hugetlb_init(void) > { > if (HPAGE_SHIFT == 0) > return 0; > + INIT_LIST_HEAD(&huge_boot_pages); > return hugetlb_init_hstate(&global_hstate); I don't think adding the INIT_LIST_HEAD here is correct. There can be huge pages added by the __setup handlers before hugetlb_init -Andi