proc: move /proc/buddyinfo boilerplate to mm/vmstat.c
[safe/jmp/linux-2.6] / fs / proc / task_nommu.c
index 4b4f9cc..219bd79 100644 (file)
@@ -110,11 +110,6 @@ int task_statm(struct mm_struct *mm, int *shared, int *text,
 static int show_map(struct seq_file *m, void *_vml)
 {
        struct vm_list_struct *vml = _vml;
-       struct proc_maps_private *priv = m->private;
-       struct task_struct *task = priv->task;
-
-       if (maps_protect && !ptrace_may_attach(task))
-               return -EACCES;
 
        return nommu_vma_show(m, vml->vma);
 }