mm/compaction: improve comment of is_via_compact_memory
JIRA: https://issues.redhat.com/browse/RHEL-27745 This patch is a backport of the following upstream commit: commit 9cc17ede5125933ab47f8f359c2cce3aca8ee757 Author: Kemeng Shi <shikemeng@huaweicloud.com> Date: Fri Sep 1 23:51:40 2023 +0800 mm/compaction: improve comment of is_via_compact_memory We do proactive compaction with order == -1 via 1. /proc/sys/vm/compact_memory 2. /sys/devices/system/node/nodex/compact 3. /proc/sys/vm/compaction_proactiveness Add missed situation in which order == -1. Link: https://lkml.kernel.org/r/20230901155141.249860-6-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Acked-by: Mel Gorman <mgorman@techsingularity.net> Cc: David Hildenbrand <david@redhat.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rafael Aquini <raquini@redhat.com>
This commit is contained in:
parent
2487ddb148
commit
aec7fb84d2
|
@ -2084,8 +2084,10 @@ static isolate_migrate_t isolate_migratepages(struct compact_control *cc)
|
|||
}
|
||||
|
||||
/*
|
||||
* order == -1 is expected when compacting via
|
||||
* /proc/sys/vm/compact_memory
|
||||
* order == -1 is expected when compacting proactively via
|
||||
* 1. /proc/sys/vm/compact_memory
|
||||
* 2. /sys/devices/system/node/nodex/compact
|
||||
* 3. /proc/sys/vm/compaction_proactiveness
|
||||
*/
|
||||
static inline bool is_via_compact_memory(int order)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue