diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 06d0877a66ef..6a207e8d17ea 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/pagemap.h> | 19 | #include <linux/pagemap.h> |
20 | #include <linux/buffer_head.h> | 20 | #include <linux/buffer_head.h> |
21 | #include <linux/mm_inline.h> | 21 | #include <linux/mm_inline.h> |
22 | #include <linux/nsproxy.h> | ||
22 | #include <linux/pagevec.h> | 23 | #include <linux/pagevec.h> |
23 | #include <linux/rmap.h> | 24 | #include <linux/rmap.h> |
24 | #include <linux/topology.h> | 25 | #include <linux/topology.h> |
@@ -705,7 +706,7 @@ move_newpage: | |||
705 | * The function returns after 10 attempts or if no pages | 706 | * The function returns after 10 attempts or if no pages |
706 | * are movable anymore because to has become empty | 707 | * are movable anymore because to has become empty |
707 | * or no retryable pages exist anymore. All pages will be | 708 | * or no retryable pages exist anymore. All pages will be |
708 | * retruned to the LRU or freed. | 709 | * returned to the LRU or freed. |
709 | * | 710 | * |
710 | * Return: Number of pages not migrated or error code. | 711 | * Return: Number of pages not migrated or error code. |
711 | */ | 712 | */ |
@@ -924,7 +925,7 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, | |||
924 | 925 | ||
925 | /* Find the mm_struct */ | 926 | /* Find the mm_struct */ |
926 | read_lock(&tasklist_lock); | 927 | read_lock(&tasklist_lock); |
927 | task = pid ? find_task_by_pid(pid) : current; | 928 | task = pid ? find_task_by_vpid(pid) : current; |
928 | if (!task) { | 929 | if (!task) { |
929 | read_unlock(&tasklist_lock); | 930 | read_unlock(&tasklist_lock); |
930 | return -ESRCH; | 931 | return -ESRCH; |