--- a/mm/migrate.c~mm-migrate-remove-cpages-in-migrate_vma_finalize +++ a/mm/migrate.c @@ -3077,7 +3077,6 @@ void migrate_vma_finalize(struct migrate remove_migration_ptes(page, newpage, false); unlock_page(page); - migrate->cpages--; if (is_zone_device_page(page)) put_page(page);