mm: migrate: Add a tracepoint for migrate_pages

The pgmigrate_success and pgmigrate_fail vmstat counters tells the user
about migration activity but not the type or the reason. This patch adds
a tracepoint to identify the type of page migration and why the page is
being migrated.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
This commit is contained in:
Mel Gorman
2012-10-19 14:07:31 +01:00
parent 5647bc293a
commit 7b2a2d4a18
8 changed files with 82 additions and 10 deletions

View File

@@ -5707,7 +5707,8 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
ret = migrate_pages(&cc->migratepages,
alloc_migrate_target,
0, false, MIGRATE_SYNC);
0, false, MIGRATE_SYNC,
MR_CMA);
}
putback_lru_pages(&cc->migratepages);