diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-11-06 03:47:20 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 04:34:48 +0100 |
commit | 21c527a3cba07f9a9ce17b3a445f110a847793e2 (patch) | |
tree | a87e5607b438dce4fce6c1cc49a6759d37e38712 /fs | |
parent | mm/vmscan: make inactive_anon_is_low_global return directly (diff) | |
download | linux-21c527a3cba07f9a9ce17b3a445f110a847793e2.tar.xz linux-21c527a3cba07f9a9ce17b3a445f110a847793e2.zip |
mm/compaction.c: add an is_via_compact_memory() helper
Introduce is_via_compact_memory() helper indicating compacting via
/proc/sys/vm/compact_memory to improve readability.
To catch this situation in __compaction_suitable, use order as parameter
directly instead of using struct compact_control.
This patch has no functional changes.
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions