]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/compaction: reset compaction scanner positions
authorGioh Kim <gioh.kim@lge.com>
Tue, 7 Apr 2015 23:44:28 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:28 +0000 (09:44 +1000)
commitacf81664f78432ca4773a75d62066475292f9c60
tree3511c56b7d061c48ad53984a7ed24b6c7300257b
parent72d3eb0037fe6b21701df7157142c61db76e5cc0
mm/compaction: reset compaction scanner positions

When the compaction is activated via /proc/sys/vm/compact_memory it would
better scan the whole zone.  And some platforms, for instance ARM, have
the start_pfn of a zone at zero.  Therefore the first try to compact via
/proc doesn't work.  It needs to reset the compaction scanner position
first.

Signed-off-by: Gioh Kim <gioh.kim@lge.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c