diff options
Diffstat (limited to 'fs/proc/inode.c')
-rw-r--r-- | fs/proc/inode.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 90ed410b7..67273b3ba 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -82,18 +82,7 @@ static void proc_delete_inode(struct inode *inode) } } -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 @@ static struct super_operations proc_sops = { 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 @@ struct super_block *proc_read_super(struct super_block *s,void *data, 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: |