[PATCH] Increase max kmalloc size for very large systems

Systems with extemely large numbers of nodes or cpus need to kmalloc
structures larger than is currently supported.  This patch increases the
maximum supported size for very large systems.

This patch should have no effect on current systems.

(akpm: why not just use alloc_pages() for sysfs_cpus?)

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jack Steiner 2006-03-06 15:42:50 -08:00 коммит произвёл Linus Torvalds
Родитель 78679302fe
Коммит a615fa8395
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -19,8 +19,10 @@
CACHE(32768) CACHE(32768)
CACHE(65536) CACHE(65536)
CACHE(131072) CACHE(131072)
#ifndef CONFIG_MMU #if (NR_CPUS > 512) || (MAX_NUMNODES > 256) || !defined(CONFIG_MMU)
CACHE(262144) CACHE(262144)
#endif
#ifndef CONFIG_MMU
CACHE(524288) CACHE(524288)
CACHE(1048576) CACHE(1048576)
#ifdef CONFIG_LARGE_ALLOCS #ifdef CONFIG_LARGE_ALLOCS