Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752978AbYCODLP (ORCPT ); Fri, 14 Mar 2008 23:11:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751420AbYCODLE (ORCPT ); Fri, 14 Mar 2008 23:11:04 -0400 Received: from saeurebad.de ([85.214.36.134]:58163 "EHLO saeurebad.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628AbYCODLD (ORCPT ); Fri, 14 Mar 2008 23:11:03 -0400 From: Johannes Weiner To: "Yinghai Lu" Cc: "KAMEZAWA Hiroyuki" , "Andrew Morton" , "Ingo Molnar" , "Andi Kleen" , "Christoph Lameter" , linux-kernel@vger.kernel.org, "Yasunori Goto" Subject: Re: [PATCH] mm: make reserve_bootmem can crossed the nodes References: <86802c440803131645q1eb31cb7jb0774d9cf67c767@mail.gmail.com> <20080314103431.ff07070c.kamezawa.hiroyu@jp.fujitsu.com> <86802c440803131835u4e506d69l4f116eb49d9ee9b2@mail.gmail.com> <20080314105529.79921546.kamezawa.hiroyu@jp.fujitsu.com> <86802c440803131900j30ef490bk1923fdd219433535@mail.gmail.com> <20080314113646.d73066f7.kamezawa.hiroyu@jp.fujitsu.com> <87zlt22erg.fsf@saeurebad.de> <86802c440803132003j4937546di1dc89cb51985cedb@mail.gmail.com> Date: Sat, 15 Mar 2008 04:08:29 +0100 In-Reply-To: <86802c440803132003j4937546di1dc89cb51985cedb@mail.gmail.com> (Yinghai Lu's message of "Thu, 13 Mar 2008 20:03:37 -0700") Message-ID: <87fxus1y6q.fsf@saeurebad.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1242 Lines: 40 Hi, "Yinghai Lu" writes: > On Thu, Mar 13, 2008 at 7:58 PM, Johannes Weiner wrote: >> Hi, >> >> >> KAMEZAWA Hiroyuki writes: >> >> > Background: >> > - reserve_bootmem is called for *reserve* memory before bootmem allocator. >> > - It specifies . >> > - Because are argments, memory hole in is not >> > problem here. >> > >> > Before change, >> > - reseve_bootmem() only works for Node(0) >> > >> > After change >> > - reserve_bootmem() works on sutiable nodes for >> > - It can spread accross among prural nodes. >> >> After the change it will iterate over all nodes, reserving the range >> `address to address+size' on each of them. > > + /* out of range */ > + if (addr >= bdata->node_boot_start && addr < bdata->last_success) > + return; > > out of range will bail out... Sorry, I did not see that. Hannes -- 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/