mm: migrate: simplify the logic for handling permanent failure