Skip to contentSkip to conversation

bdata and pgdat initialization cleanup [3/5] remove pgdat->bdata

RFC PATCH New KAMEZAWA Hiroyuki 1 participant 1 message Feb 21, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 bdata and pgdat initialization cleanup [3/5] remove pgdat->bdata

Because pgdat is not used in bootmem.c, pgdat->bdata can be removed.

include/linux/mmzone.h +0 -1
Index: testtree/include/linux/mmzone.h
===================================================================
@@ -292,7 +292,6 @@ typedef struct pglist_data {
 #ifdef CONFIG_FLAT_NODE_MEM_MAP
 	struct page *node_mem_map;
 #endif
-	struct bootmem_data *bdata;
 #ifdef CONFIG_MEMORY_HOTPLUG
 	/*
 	 * Must be held any time you expect node_start_pfn, node_present_pages
mm/page_alloc.c +1 -1
Index: testtree/mm/page_alloc.c
===================================================================
@@ -2224,7 +2224,7 @@ void __init free_area_init_node(int nid,
 }
 
 #ifndef CONFIG_NEED_MULTIPLE_NODES
-struct pglist_data contig_page_data = { .bdata = BOOTMEM(0)};
+struct pglist_data contig_page_data;
 
 EXPORT_SYMBOL(contig_page_data);
 #endif

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>