• Christoph Lameter's avatar
    [PATCH] reduce MAX_NR_ZONES: page allocator ZONE_HIGHMEM cleanup · 98d2b0eb
    Christoph Lameter authored
    page allocator ZONE_HIGHMEM fixups
    
    1. We do not need to do an #ifdef in si_meminfo since both counters
       in use are zero if !CONFIG_HIGHMEM.
    
    2. Add #ifdef in si_meminfo_node instead to avoid referencing zone
       information for ZONE_HIGHMEM if we do not have HIGHMEM
       (may not be there after the following patches).
    
    3. Replace the use of ZONE_HIGHMEM with MAX_NR_ZONES in build_zonelists_node
    
    4. build_zonelists_node: Remove BUG_ON for ZONE_HIGHMEM. Zone will
       be optional soon and thus BUG_ON cannot be triggered anymore.
    
    5. init_free_area_core: Replace a use of ZONE_HIGHMEM with NR_MAX_ZONES.
    
    [akpm@osdl.org: cleanups]
    Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    98d2b0eb
page_alloc.c 62.3 KB