Re: [PATCH] - Allow architectures to increase size of MAX_NR_MEMBLKS

From: Christoph Hellwig
Date: Thu Nov 06 2003 - 03:58:31 EST


On Wed, Nov 05, 2003 at 12:19:11PM -0600, Jack Steiner wrote:
> This fixes a problem that occurs on system with >64 nodes.
>
> Previously, MAX_NR_MEMBLKS was defined as BITS_PER_LONG. This
> patch allows an architecture to override this definition by
> defining a value in the arch-specific asm-xxx/mmzone.h file.

IMHO this is too much clutter. Just make it mandatory for the
architectures to define their own MAX_NR_MEMBLKS in the numa case.

Or actually even better just have a

#ifndef MAX_NR_MEMBLKS
#define MAX_NR_MEMBLKS 1
#endif

in the generic code and let every architecture that wants to override
it do so.

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