patch-2.3.99-pre7 linux/fs/proc/inode.c
Next file: linux/fs/proc/procfs_syms.c
Previous file: linux/fs/proc/generic.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon May 8 11:17:47 2000
- Orig file:
v2.3.99-pre6/linux/fs/proc/inode.c
- Orig date:
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -82,18 +82,7 @@
}
}
-struct super_block *proc_super_blocks = NULL;
-
-static void proc_put_super(struct super_block *sb)
-{
- struct super_block **p = &proc_super_blocks;
- while (*p != sb) {
- if (!*p) /* should never happen */
- return;
- p = (struct super_block **)&(*p)->u.generic_sbp;
- }
- *p = (struct super_block *)(*p)->u.generic_sbp;
-}
+struct vfsmount *proc_mnt;
static void proc_read_inode(struct inode * inode)
{
@@ -115,7 +104,6 @@
read_inode: proc_read_inode,
put_inode: proc_put_inode,
delete_inode: proc_delete_inode,
- put_super: proc_put_super,
statfs: proc_statfs,
};
@@ -222,8 +210,6 @@
if (!s->s_root)
goto out_no_root;
parse_options(data, &root_inode->i_uid, &root_inode->i_gid);
- s->u.generic_sbp = (void*) proc_super_blocks;
- proc_super_blocks = s;
return s;
out_no_root:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)