diff --git a/mm/migrate.c b/mm/migrate.c index 8393f4a935a9..209078154a46 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1700,6 +1700,9 @@ static int migrate_pages_batch(struct list_head *from, new_page_t get_new_page, large_retry++; thp_retry += is_thp; nr_retry_pages += nr_pages; + /* Undo duplicated failure counting. */ + nr_large_failed--; + stats->nr_thp_failed -= is_thp; break; } }