diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 47296fe..2bd13e9 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1012,6 +1012,9 @@ int do_migrate_pages(struct mm_struct *mm, int dest = 0; for_each_node_mask(s, tmp) { + /* no need to move if its already there */ + if (node_isset(s, *to_nodes)) + continue; d = node_remap(s, *from_nodes, *to_nodes); if (s == d) continue;