From: David Rientjes Date: Mon, 7 Apr 2014 22:37:34 +0000 (-0700) Subject: mm, compaction: determine isolation mode only once X-Git-Tag: v3.15-rc1~57^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1c67a76f7cf2b3404823d24f9f10fa91aa5dc5;p=pandora-kernel.git mm, compaction: determine isolation mode only once The conditions that control the isolation mode in isolate_migratepages_range() do not change during the iteration, so extract them out and only define the value once. This actually does have an effect, gcc doesn't optimize it itself because of cc->sync. Signed-off-by: David Rientjes Cc: Mel Gorman Acked-by: Rik van Riel Acked-by: Vlastimil Babka Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed