Message ID | 20200121212726.WdBeK%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | [nacked] mm-move_pages-fix-the-return-value-if-there-are-not-migrated-pages.patch removed from -mm tree | expand |
--- a/mm/migrate.c~mm-move_pages-fix-the-return-value-if-there-are-not-migrated-pages +++ a/mm/migrate.c @@ -1659,8 +1659,11 @@ static int do_pages_move(struct mm_struc goto out_flush; err = do_move_pages_to_node(mm, &pagelist, current_node); - if (err) + if (err) { + if (err > 0) + err = 0; goto out; + } if (i > start) { err = store_status(status, start, current_node, i - start); if (err)