From: Mel Gorman Date: Wed, 4 Jun 2014 23:10:33 +0000 (-0700) Subject: mm: page_alloc: calculate classzone_idx once from the zonelist ref X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~105 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8846374a85f4290a473a4e2a64c1ba046c4a0e1;p=pandora-kernel.git mm: page_alloc: calculate classzone_idx once from the zonelist ref There is no need to calculate zone_idx(preferred_zone) multiple times or use the pgdat to figure it out. Signed-off-by: Mel Gorman Acked-by: Rik van Riel Acked-by: David Rientjes Cc: Johannes Weiner Cc: Vlastimil Babka Cc: Jan Kara Cc: Michal Hocko Cc: Hugh Dickins Cc: Dave Hansen Cc: Theodore Ts'o Cc: "Paul E. McKenney" Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Dan Carpenter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed