From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e2.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l72GVdfJ017107 for ; Thu, 2 Aug 2007 12:31:39 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.4) with ESMTP id l72GVcrl559090 for ; Thu, 2 Aug 2007 12:31:39 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l72GVcvD002888 for ; Thu, 2 Aug 2007 12:31:38 -0400 Subject: Re: [PATCH 4/4] vmemmap ppc64: convert VMM_* macros to a real function From: Dave Hansen In-Reply-To: References: Content-Type: text/plain Date: Thu, 02 Aug 2007 09:31:35 -0700 Message-Id: <1186072295.18414.257.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andy Whitcroft Cc: Andrew Morton , linux-mm@kvack.org, linux-arch@vger.kernel.org, Christoph Hellwig , Nick Piggin , Christoph Lameter , Mel Gorman List-ID: On Thu, 2007-08-02 at 10:25 +0100, Andy Whitcroft wrote: > > +unsigned long __meminit vmemmap_section_start(struct page *page) > +{ > + unsigned long offset = ((unsigned long)page) - > + ((unsigned long)(vmemmap)); Isn't this basically page_to_pfn()? Can we use it here? -- Dave -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org