diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 568152ae6caf..c1592a94582f 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -78,6 +78,7 @@ | |||
78 | #include <linux/slab.h> | 78 | #include <linux/slab.h> |
79 | #include <linux/string.h> | 79 | #include <linux/string.h> |
80 | #include <linux/module.h> | 80 | #include <linux/module.h> |
81 | #include <linux/nsproxy.h> | ||
81 | #include <linux/interrupt.h> | 82 | #include <linux/interrupt.h> |
82 | #include <linux/init.h> | 83 | #include <linux/init.h> |
83 | #include <linux/compat.h> | 84 | #include <linux/compat.h> |
@@ -940,7 +941,7 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, | |||
940 | 941 | ||
941 | /* Find the mm_struct */ | 942 | /* Find the mm_struct */ |
942 | read_lock(&tasklist_lock); | 943 | read_lock(&tasklist_lock); |
943 | task = pid ? find_task_by_pid(pid) : current; | 944 | task = pid ? find_task_by_vpid(pid) : current; |
944 | if (!task) { | 945 | if (!task) { |
945 | read_unlock(&tasklist_lock); | 946 | read_unlock(&tasklist_lock); |
946 | return -ESRCH; | 947 | return -ESRCH; |
@@ -1388,7 +1389,6 @@ EXPORT_SYMBOL(alloc_pages_current); | |||
1388 | * keeps mempolicies cpuset relative after its cpuset moves. See | 1389 | * keeps mempolicies cpuset relative after its cpuset moves. See |
1389 | * further kernel/cpuset.c update_nodemask(). | 1390 | * further kernel/cpuset.c update_nodemask(). |
1390 | */ | 1391 | */ |
1391 | void *cpuset_being_rebound; | ||
1392 | 1392 | ||
1393 | /* Slow path of a mempolicy copy */ | 1393 | /* Slow path of a mempolicy copy */ |
1394 | struct mempolicy *__mpol_copy(struct mempolicy *old) | 1394 | struct mempolicy *__mpol_copy(struct mempolicy *old) |
@@ -2019,4 +2019,3 @@ out: | |||
2019 | m->version = (vma != priv->tail_vma) ? vma->vm_start : 0; | 2019 | m->version = (vma != priv->tail_vma) ? vma->vm_start : 0; |
2020 | return 0; | 2020 | return 0; |
2021 | } | 2021 | } |
2022 | |||