Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764282AbYAaDEB (ORCPT ); Wed, 30 Jan 2008 22:04:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764443AbYAaDDh (ORCPT ); Wed, 30 Jan 2008 22:03:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:41611 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764075AbYAaDDf (ORCPT ); Wed, 30 Jan 2008 22:03:35 -0500 From: Andi Kleen To: Yinghai Lu Subject: Re: PATCH] x86_64: make bootmap_start page align v4 Date: Thu, 31 Jan 2008 04:02:14 +0100 User-Agent: KMail/1.9.1 Cc: Ingo Molnar , Christoph Lameter , Andrew Morton , linux-kernel@vger.kernel.org References: <200801291113.35974.yinghai.lu@sun.com> <200801302008.32811.ak@suse.de> <200801301215.51645.yinghai.lu@sun.com> In-Reply-To: <200801301215.51645.yinghai.lu@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801310402.14912.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 857 Lines: 22 > I don't think so, that is setup_node_bootmem's problem. > > it is supposed to round_up instead of just do PAGE_SHIFT... > > other caller will just use the address instead change it page. You're right. In this case it really is the best way to round up in the caller. I retract my earlier objection. That said there is not really any true requirement for the bootmem map to be page aligned (AFAIK) so an alternative might be to fix the bootmem interface to not take a PFN. But that would be a much more intrusive patch because you would need to fix other architectures too or add compat wrappers. -Andi -- 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/