Thread (5 messages) 5 messages, 5 authors, 2009-02-04

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

flat view

From: <hidden>
Date: 2009-02-04 06:18:35
Also in: lkml

Possibly related (same subject, not in this thread)

On Wed, 04 Feb 2009 12:50:48 +1100 Benjamin Herrenschmidt 
quoted
quoted
Do the generic hugetlbfs code provides such an API ? If not, we may need
to add one.
On Wednesday 04 February 2009 16:13:29 Andrew Morton wrote:
quoted
I think it's something like
	huge_page_size(page_hstate(page))
On Wed, Feb 04, 2009 at 04:31:38PM +1100, Nick Piggin wrote:
That would work if you have a page, yes. If you want to query which hugepage
sizes are available, then you probably want for_each_hstate() (which is only
within mm/hugetlb.c at the moment, but I have no objections to exporting it
and symbols it requires).
Exciting things have happened in mm/hugetlb.c while I was out sick.
I've got quite some catching up to do.


-- wli
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help