Re: Page allocator: Single Zone optimizations

Christoph Lameter
2006-10-17T01:25:15Z

On Tue, 17 Oct 2006, KAMEZAWA Hiroyuki wrote:

> How about defining following instead of inserting #ifdefs ?
>
> #ifdef ZONES_SHIFT > 0
> #define zone_lowmem_reserve(z, i) ((z)->lowmem_reserve[(i)])
> #else
> #define zone_lowmem_reserve(z, i) (0)
> #endif
>
> and removing #if's from *.c files ? Can't this be help ?

Well it only shifts the #ifdef elsewhere....