From: Bob Liu Date: Fri, 13 Jan 2012 01:19:07 +0000 (-0800) Subject: page_alloc: break early in check_for_regular_memory() X-Git-Tag: v3.3-rc1~81^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0048b0e59c1218d62bb4d014f34bbd7e7c0a214;p=pandora-kernel.git page_alloc: break early in check_for_regular_memory() If there is a zone below ZONE_NORMAL has present_pages, we can set node state to N_NORMAL_MEMORY, no need to loop to end. Signed-off-by: Bob Liu Acked-by: Michal Hocko Cc: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed