|
@@ -1622,6 +1622,9 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes,
|
|
current_node = NUMA_NO_NODE;
|
|
current_node = NUMA_NO_NODE;
|
|
}
|
|
}
|
|
out_flush:
|
|
out_flush:
|
|
|
|
+ if (list_empty(&pagelist))
|
|
|
|
+ return err;
|
|
|
|
+
|
|
/* Make sure we do not overwrite the existing error */
|
|
/* Make sure we do not overwrite the existing error */
|
|
err1 = do_move_pages_to_node(mm, &pagelist, current_node);
|
|
err1 = do_move_pages_to_node(mm, &pagelist, current_node);
|
|
if (!err1)
|
|
if (!err1)
|