linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / fs / proc / task_nommu.c
index 4616ed5..8f68827 100644 (file)
@@ -107,7 +107,7 @@ int proc_exe_link(struct inode *inode, struct dentry **dentry, struct vfsmount *
 {
        struct vm_list_struct *vml;
        struct vm_area_struct *vma;
-       struct task_struct *task = get_proc_task(inode);
+       struct task_struct *task = proc_task(inode);
        struct mm_struct *mm = get_task_mm(task);
        int result = -ENOENT;
 
@@ -156,28 +156,9 @@ static void *m_next(struct seq_file *m, void *v, loff_t *pos)
 {
        return NULL;
 }
-static struct seq_operations proc_pid_maps_op = {
+struct seq_operations proc_pid_maps_op = {
        .start  = m_start,
        .next   = m_next,
        .stop   = m_stop,
        .show   = show_map
 };
-
-static int maps_open(struct inode *inode, struct file *file)
-{
-       int ret;
-       ret = seq_open(file, &proc_pid_maps_op);
-       if (!ret) {
-               struct seq_file *m = file->private_data;
-               m->private = NULL;
-       }
-       return ret;
-}
-
-struct file_operations proc_maps_operations = {
-       .open           = maps_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = seq_release,
-};
-