diff --git a/mm/migrate.c b/mm/migrate.c index 842ecd7aaf7fa6ac1371f6137dc155c91851505c..94961f4654b7fd6d7fbd32fa179286cc93e0474f 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1169,7 +1169,8 @@ int migrate_pages(struct list_head *from, new_page_t get_new_page, } } } - rc = nr_failed + retry; + nr_failed += retry; + rc = nr_failed; out: if (nr_succeeded) count_vm_events(PGMIGRATE_SUCCESS, nr_succeeded);