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

From: Roland Dreier
Date: Wed Feb 04 2009 - 16:32:25 EST


> You should be able to find the head of a compound page using the
> compound_head() inline, so try

> PAGE_SIZE << compound_order(compound_head(page))

Thanks! Looks like that should be exactly what we need.

- R.
--
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/