From: Mel Gorman Date: Tue, 16 Jun 2009 22:32:00 +0000 (-0700) Subject: page allocator: calculate the migratetype for allocation only once X-Git-Tag: v2.6.31-rc1~299^2~148 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd2826698b6902aafd9441ce28ebb44735fd0d6;p=pandora-kernel.git page allocator: calculate the migratetype for allocation only once GFP mask is converted into a migratetype when deciding which pagelist to take a page from. However, it is happening multiple times per allocation, at least once per zone traversed. Calculate it once. Signed-off-by: Mel Gorman Cc: Christoph Lameter Cc: KOSAKI Motohiro Cc: Pekka Enberg Cc: Peter Zijlstra Cc: Nick Piggin Cc: Dave Hansen Cc: Lee Schermerhorn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed