mm: stop returning -ENOENT from sys_move_pages() if nothing got migrated
[linux-2.6.git] / mm / migrate.c
index 6802a7a..f233519 100644 (file)
@@ -896,11 +896,10 @@ set_status:
                pp->status = err;
        }
 
+       err = 0;
        if (!list_empty(&pagelist))
                err = migrate_pages(&pagelist, new_page_node,
                                (unsigned long)pm);
-       else
-               err = -ENOENT;
 
        up_read(&mm->mmap_sem);
        return err;