Re: FW: [PATCH] powerpc/mm: Export HPAGE_SHIFT

From: Andrew Morton
Date: Wed Feb 04 2009 - 01:27:24 EST


On Tue, 03 Feb 2009 22:16:08 -0800 Roland Dreier <rdreier@xxxxxxxxx> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/