From: David Rientjes Date: Thu, 3 Apr 2014 21:47:23 +0000 (-0700) Subject: mm, compaction: ignore pageblock skip when manually invoking compaction X-Git-Tag: upstream/snapshot3+hdmi~1400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67c58ce60024b9b3d9cf203da994bf265aa7e369;hp=e8cd5b562a4bfa351d07a5e4c5758b1afe6a4c0b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm, compaction: ignore pageblock skip when manually invoking compaction commit 91ca9186484809c57303b33778d841cc28f696ed upstream. The cached pageblock hint should be ignored when triggering compaction through /proc/sys/vm/compact_memory so all eligible memory is isolated. Manually invoking compaction is known to be expensive, there's no need to skip pageblocks based on heuristics (mainly for debugging). Signed-off-by: David Rientjes Acked-by: Mel Gorman Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Mel Gorman Signed-off-by: Greg Kroah-Hartman --- diff --git a/mm/compaction.c b/mm/compaction.c index 951209b..5e38e57 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1193,6 +1193,7 @@ static void compact_node(int nid) struct compact_control cc = { .order = -1, .sync = true, + .ignore_skip_hint = true, }; __compact_pgdat(NODE_DATA(nid), &cc);