Message ID | 20200118224754.ufg_j%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-move_pages-fix-the-return-value-if-there-are-not-migrated-pages.patch added to -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)