aboutsummaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2012-10-19 09:07:31 -0400
committerMel Gorman <mgorman@suse.de>2012-12-11 09:28:35 -0500
commit7b2a2d4a18fffac3c4872021529b0657896db788 (patch)
treea0f05be191f12711a774368f6feb15bcd2eebf1a /mm/compaction.c
parent5647bc293ab15f66a7b1cda850c5e9d162a6c7c2 (diff)
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>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 00ad88395216..2c077a78487c 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -990,7 +990,8 @@ static int compact_zone(struct zone *zone, struct compact_control *cc)
990 nr_migrate = cc->nr_migratepages; 990 nr_migrate = cc->nr_migratepages;
991 err = migrate_pages(&cc->migratepages, compaction_alloc, 991 err = migrate_pages(&cc->migratepages, compaction_alloc,
992 (unsigned long)cc, false, 992 (unsigned long)cc, false,
993 cc->sync ? MIGRATE_SYNC_LIGHT : MIGRATE_ASYNC); 993 cc->sync ? MIGRATE_SYNC_LIGHT : MIGRATE_ASYNC,
994 MR_COMPACTION);
994 update_nr_listpages(cc); 995 update_nr_listpages(cc);
995 nr_remaining = cc->nr_migratepages; 996 nr_remaining = cc->nr_migratepages;
996 997