Merge "mm: memory_hotplug: migration failure info of a page under DEBUG_VM"

This commit is contained in:
qctecmdr 2020-11-21 11:50:56 -08:00 • committed by Gerrit - the friendly Code Review server
commit 9be27828f5

View file

@ -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);