Merge tag 'ceph-for-5.4-rc1' of git://github.com/ceph/ceph-client
[linux-2.6-block.git] / mm / mempolicy.c
index f000771558d8820cc6d8ff6efea968a17acbd1b7..464406e8da9109b63d705132c3ea5f2187dd8c2e 100644 (file)
@@ -1512,10 +1512,6 @@ static int kernel_migrate_pages(pid_t pid, unsigned long maxnode,
        if (nodes_empty(*new))
                goto out_put;
 
-       nodes_and(*new, *new, node_states[N_MEMORY]);
-       if (nodes_empty(*new))
-               goto out_put;
-
        err = security_task_movememory(task);
        if (err)
                goto out_put;