diff options
author | Mel Gorman <mgorman@suse.de> | 2012-10-19 09:07:31 -0400 |
---|---|---|
committer | Mel Gorman <mgorman@suse.de> | 2012-12-11 09:28:35 -0500 |
commit | 7b2a2d4a18fffac3c4872021529b0657896db788 (patch) | |
tree | a0f05be191f12711a774368f6feb15bcd2eebf1a /mm/memory-failure.c | |
parent | 5647bc293ab15f66a7b1cda850c5e9d162a6c7c2 (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/memory-failure.c')
-rw-r--r-- | mm/memory-failure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 6c5899b9034a..ddb68a169e45 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c | |||
@@ -1558,7 +1558,8 @@ int soft_offline_page(struct page *page, int flags) | |||
1558 | page_is_file_cache(page)); | 1558 | page_is_file_cache(page)); |
1559 | list_add(&page->lru, &pagelist); | 1559 | list_add(&page->lru, &pagelist); |
1560 | ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, | 1560 | ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, |
1561 | false, MIGRATE_SYNC); | 1561 | false, MIGRATE_SYNC, |
1562 | MR_MEMORY_FAILURE); | ||
1562 | if (ret) { | 1563 | if (ret) { |
1563 | putback_lru_pages(&pagelist); | 1564 | putback_lru_pages(&pagelist); |
1564 | pr_info("soft offline: %#lx: migration failed %d, type %lx\n", | 1565 | pr_info("soft offline: %#lx: migration failed %d, type %lx\n", |