diff options
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 2c077a78487c..aee7443a4d5a 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -356,6 +356,10 @@ static unsigned long isolate_freepages_block(struct compact_control *cc, | |||
356 | if (blockpfn == end_pfn) | 356 | if (blockpfn == end_pfn) |
357 | update_pageblock_skip(cc, valid_page, total_isolated, false); | 357 | update_pageblock_skip(cc, valid_page, total_isolated, false); |
358 | 358 | ||
359 | count_vm_events(COMPACTFREE_SCANNED, nr_scanned); | ||
360 | if (total_isolated) | ||
361 | count_vm_events(COMPACTISOLATED, total_isolated); | ||
362 | |||
359 | return total_isolated; | 363 | return total_isolated; |
360 | } | 364 | } |
361 | 365 | ||
@@ -646,6 +650,10 @@ next_pageblock: | |||
646 | 650 | ||
647 | trace_mm_compaction_isolate_migratepages(nr_scanned, nr_isolated); | 651 | trace_mm_compaction_isolate_migratepages(nr_scanned, nr_isolated); |
648 | 652 | ||
653 | count_vm_events(COMPACTMIGRATE_SCANNED, nr_scanned); | ||
654 | if (nr_isolated) | ||
655 | count_vm_events(COMPACTISOLATED, nr_isolated); | ||
656 | |||
649 | return low_pfn; | 657 | return low_pfn; |
650 | } | 658 | } |
651 | 659 | ||