]> err.no Git - linux-2.6/commit
[PATCH] reduce MAX_NR_ZONES: make ZONE_HIGHMEM optional
authorChristoph Lameter <clameter@sgi.com>
Tue, 26 Sep 2006 06:31:14 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:46 +0000 (08:48 -0700)
commite53ef38d05dd59ed281a35590e4a5b64d8ff4c52
tree42e525df84454e89abd6cab8d7983a6a0188b6bb
parentfb0e7942bdcbbd2f90e61cb4cfa4fa892a873f8a
[PATCH] reduce MAX_NR_ZONES: make ZONE_HIGHMEM optional

Make ZONE_HIGHMEM optional

- ifdef out code and definitions related to CONFIG_HIGHMEM

- __GFP_HIGHMEM falls back to normal allocations if there is no
  ZONE_HIGHMEM

- GFP_ZONEMASK becomes 0x01 if there is no DMA32 and no HIGHMEM
  zone.

[jdike@addtoit.com: build fix]
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/mem.c
include/linux/gfp.h
include/linux/mmzone.h
mm/page_alloc.c