mm: drop unneeded pgdat argument from free_area_init_node()
free_area_init_node() gets passed in the node id as well as the node descriptor. This is redundant as the function can trivially get the node descriptor itself by means of NODE_DATA() and the node's id. I checked all the users and NODE_DATA() seems to be usable everywhere from where this function is called. Signed-off-by: Johannes Weiner <hannes@saeurebad.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
2185e69f68
commit
9109fb7b35
@ -1352,8 +1352,7 @@ void __init srmmu_paging_init(void)
|
||||
zones_size[ZONE_HIGHMEM] = npages;
|
||||
zholes_size[ZONE_HIGHMEM] = npages - calc_highpages();
|
||||
|
||||
free_area_init_node(0, &contig_page_data, zones_size,
|
||||
pfn_base, zholes_size);
|
||||
free_area_init_node(0, zones_size, pfn_base, zholes_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2123,8 +2123,7 @@ void __init sun4c_paging_init(void)
|
||||
zones_size[ZONE_HIGHMEM] = npages;
|
||||
zholes_size[ZONE_HIGHMEM] = npages - calc_highpages();
|
||||
|
||||
free_area_init_node(0, &contig_page_data, zones_size,
|
||||
pfn_base, zholes_size);
|
||||
free_area_init_node(0, zones_size, pfn_base, zholes_size);
|
||||
}
|
||||
|
||||
cnt = 0;
|
||||
|
Reference in New Issue
Block a user