]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm/compaction.c: add an is_via_compact_memory() helper
authorYaowei Bai <bywxiaobai@163.com>
Wed, 21 Oct 2015 22:03:03 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:03 +0000 (09:03 +1100)
commitf66dc067c1fb0fbeb39ed49b6608c44b9fe0c790
tree6bc0fad3594564444facef2ba4b0b552d2b73583
parent47792d5ee6915a2b4ba088a0f00e55e9c01cd5b7
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>
mm/compaction.c