patch-2.1.93 linux/fs/proc/inode.c

Next file: linux/fs/proc/link.c
Previous file: linux/fs/ntfs/fs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.92/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -80,20 +80,13 @@
 	}
 }
 
-static void proc_put_super(struct super_block *sb)
-{
-	lock_super(sb);
-	sb->s_dev = 0;
-	unlock_super(sb);
-}
-
 static struct super_operations proc_sops = { 
 	proc_read_inode,
 	proc_write_inode,
 	proc_put_inode,
 	proc_delete_inode,	/* delete_inode(struct inode *) */
 	NULL,
-	proc_put_super,
+	NULL,
 	NULL,
 	proc_statfs,
 	NULL
@@ -198,9 +191,9 @@
 	read_lock(&tasklist_lock);
 	p = find_task_by_pid(pid);
 
-	if (p != NULL)
+	if (p && p->fs)
 		de = p->fs->root;
-	read_unlock(&tasklist_lock);
+	read_unlock(&tasklist_lock);	/* FIXME! */
 
 	if (p == NULL)
 		return -EACCES;		/* ENOENT? */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov