From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465AbZBDG1T (ORCPT ); Wed, 4 Feb 2009 01:27:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751654AbZBDG1K (ORCPT ); Wed, 4 Feb 2009 01:27:10 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:37096 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751188AbZBDG1J (ORCPT ); Wed, 4 Feb 2009 01:27:09 -0500 Date: Tue, 3 Feb 2009 22:26:01 -0800 From: Andrew Morton To: Roland Dreier Cc: Benjamin Herrenschmidt , Eli Cohen , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: Re: FW: [PATCH] powerpc/mm: Export HPAGE_SHIFT Message-Id: <20090203222601.747ca8b7.akpm@linux-foundation.org> In-Reply-To: References: <20090203164930.GA10101@mtls03> <1233712248.16867.131.camel@pasglop> <20090203211329.d6190a08.akpm@linux-foundation.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 03 Feb 2009 22:16:08 -0800 Roland Dreier wrote: > > I think it's something like > > > > huge_page_size(page_hstate(page)) > > That would suit. I assume the intention is for that to be usable by > driver modules on any architecture? > erm, you overestimate the amount of planning and forethought which goes into these things ;) The lack of any EXPORT_SYMBOL(size_to_hstate) is a broadish hint.