From: Wei Yang Date: Tue, 8 Sep 2015 21:59:48 +0000 (-0700) Subject: mm/page_alloc.c: refine the calculation of highest possible node id X-Git-Tag: omap-for-v4.3/fixes-rc1~54^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=904a9553d4fcdc0c7d5621f6178f0e07598701dc;p=pandora-kernel.git 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 Cc: Tejun Heo Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed