[PATCH v2] powerpc: enforce sane MAX_ORDER

Timur Tabi timur at freescale.com
Thu Sep 25 02:08:44 EST 2008


On Wed, Sep 24, 2008 at 9:29 AM, Johannes Berg
<johannes at sipsolutions.net> wrote:

> Indeed, it makes little sense to allow you to set more than the address
> space, so here's a version with max 64.

Acked-by: Timur Tabi <timur at freescale.com>

However, the max is actually less than 64.  Assuming a 64-bit address
space, the maximum number of pages in one allocation can be
2^(64-PAGE_SHIFT).  For 4KB pages, the max value for
FORCE_MAX_ZONEORDER is 53.  For 64KB pages, the max is 49.

-- 
Timur Tabi
Linux kernel developer at Freescale



More information about the Linuxppc-dev mailing list