[RFC][PATCH 3/4] build_zonelists() unification: don't re-zero zonelist
From: Dave Hansen
Date: Tue Sep 20 2005 - 12:24:26 EST
The pgdats, and thus the zonelists are either statically
allocated in BSS, cleared by the bootmem allocator, or
cleared by arch code such as remapped_pgdat_init(). There
is no need to re-zero them here
Signed-off-by: Dave Hansen <haveblue@xxxxxxxxxx>
---
memhotplug-dave/mm/page_alloc.c | 6 ------
1 files changed, 6 deletions(-)
diff -puN mm/page_alloc.c~B1.2-build_zonelists_unification mm/page_alloc.c
--- memhotplug/mm/page_alloc.c~B1.2-build_zonelists_unification 2005-09-14 09:32:38.000000000 -0700
+++ memhotplug-dave/mm/page_alloc.c 2005-09-14 09:32:38.000000000 -0700
@@ -1549,12 +1549,6 @@ static void __init build_zonelists(pg_da
struct zonelist *zonelist;
nodemask_t used_mask;
- /* initialize zonelists */
- for (i = 0; i < GFP_ZONETYPES; i++) {
- zonelist = pgdat->node_zonelists + i;
- zonelist->zones[0] = NULL;
- }
-
/* NUMA-aware ordering of nodes */
local_node = pgdat->node_id;
load = num_online_nodes();
_
-
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/