From: Joonsoo Kim Date: Mon, 7 Apr 2014 22:37:04 +0000 (-0700) Subject: mm/compaction: do not call suitable_migration_target() on every page X-Git-Tag: v3.15-rc1~57^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ead5340bcf5f3a1cd2452c75516d0ef4d908d7;p=pandora-kernel.git mm/compaction: do not call suitable_migration_target() on every page suitable_migration_target() checks that pageblock is suitable for migration target. In isolate_freepages_block(), it is called on every page and this is inefficient. So make it called once per pageblock. suitable_migration_target() also checks if page is highorder or not, but it's criteria for highorder is pageblock order. So calling it once within pageblock range has no problem. Signed-off-by: Joonsoo Kim Acked-by: Vlastimil Babka Cc: Mel Gorman Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed