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-Url: https://git.stricted.de/?a=commitdiff_plain;h=91ca9186484809c57303b33778d841cc28f696ed;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mm, compaction: ignore pageblock skip when manually invoking compaction 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 --- diff --git a/mm/compaction.c b/mm/compaction.c index 918577595ea8..37b3799d948c 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1186,6 +1186,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);