mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: Rik van Riel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3115cd9145
commit
91ca918648
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue