From 9c71673f9e75194442703169facf849abfa36bf0 Mon Sep 17 00:00:00 2001 From: Charan Teja Reddy Date: Thu, 12 Nov 2020 19:21:25 +0530 Subject: [PATCH] mm: memory_hotplug: migration failure info of a page under DEBUG_VM Put the migration failure info of a page under DEBUG_VM as most of the times this info is not required. Change-Id: I798f0bef9c558a272c6aa94424236d8f65f801dd Signed-off-by: Charan Teja Reddy --- mm/memory_hotplug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index fe4b28db21d6..230576799c15 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1407,7 +1407,10 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) if (__ratelimit(&migrate_rs)) { pr_warn("migrating pfn %lx failed ret:%d\n", page_to_pfn(page), ret); - dump_page(page, "migration failure"); + __dump_page(page, "migration failure"); +#if defined(CONFIG_DEBUG_VM) + dump_page_owner(page); +#endif } } putback_movable_pages(&source);