The patch titled Subject: mm/page_alloc.c: refine the calculation of highest possible node id has been removed from the -mm tree. Its filename was mm-page-refine-the-calculation-of-highest-possible-node-id.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Subject: mm/page_alloc.c: refine the calculation of highest possible node id nr_node_ids records the highest possible node id, which is calculated by scanning the bitmap node_states[N_POSSIBLE]. Current implementation scan the bitmap from the beginning, which will scan the whole bitmap. This patch reverses the order by scanning from the end with find_last_bit(). Signed-off-by: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff -puN mm/page_alloc.c~mm-page-refine-the-calculation-of-highest-possible-node-id mm/page_alloc.c --- a/mm/page_alloc.c~mm-page-refine-the-calculation-of-highest-possible-node-id +++ a/mm/page_alloc.c @@ -5478,11 +5478,9 @@ void __paginginit free_area_init_node(in */ void __init setup_nr_node_ids(void) { - unsigned int node; - unsigned int highest = 0; + unsigned int highest; - for_each_node_mask(node, node_possible_map) - highest = node; + highest = find_last_bit(node_possible_map.bits, MAX_NUMNODES); nr_node_ids = highest + 1; } #endif _ Patches currently in -mm which might be from weiyang@xxxxxxxxxxxxxxxxxx are -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html