]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/migrate.c
sky2: crash on remove
[linux-2.6-omap-h63xx.git] / mm / migrate.c
index c479357b54806bc24892ebc30649ee4d592afe47..6a207e8d17ea3f74f0e20511fc726fe80ac47fb1 100644 (file)
@@ -706,7 +706,7 @@ move_newpage:
  * The function returns after 10 attempts or if no pages
  * are movable anymore because to has become empty
  * or no retryable pages exist anymore. All pages will be
- * retruned to the LRU or freed.
+ * returned to the LRU or freed.
  *
  * Return: Number of pages not migrated or error code.
  */
@@ -925,8 +925,7 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages,
 
        /* Find the mm_struct */
        read_lock(&tasklist_lock);
-       task = pid ?
-               find_task_by_pid_ns(pid, current->nsproxy->pid_ns) : current;
+       task = pid ? find_task_by_vpid(pid) : current;
        if (!task) {
                read_unlock(&tasklist_lock);
                return -ESRCH;