mm: compaction: count the migration scanned pages events for proactive compaction
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Tue, 10 Jan 2023 13:36:20 +0000 (21:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:53 +0000 (22:32 -0800)
commit1bfb7684db1233d9e3f3f26fbbc0c58d40ff65e7
tree4825caa8297996f1895f0d956a8ef42217c7897d
parent753ec50d976c28b08266dec3110905b377464eb1
mm: compaction: count the migration scanned pages events for proactive compaction

The proactive compaction will reuse per-node kcompactd threads, so we
should also count the KCOMPACTD_MIGRATE_SCANNED and KCOMPACTD_FREE_SCANNED
events for proactive compaction.

Link: https://lkml.kernel.org/r/b7f1ece1adc17defa47e3667b5f9fd61f496517a.1673342761.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c