Commit 0f4288ec authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Greg Kroah-Hartman

sysfs: Kill unused sysfs_sb variable.

Now that there are no more users we can remove
the sysfs_sb variable.
Acked-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fac2622b
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
static struct vfsmount *sysfs_mount; static struct vfsmount *sysfs_mount;
struct super_block * sysfs_sb = NULL;
struct kmem_cache *sysfs_dir_cachep; struct kmem_cache *sysfs_dir_cachep;
static const struct super_operations sysfs_ops = { static const struct super_operations sysfs_ops = {
...@@ -50,7 +49,6 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -50,7 +49,6 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = SYSFS_MAGIC; sb->s_magic = SYSFS_MAGIC;
sb->s_op = &sysfs_ops; sb->s_op = &sysfs_ops;
sb->s_time_gran = 1; sb->s_time_gran = 1;
sysfs_sb = sb;
/* get root inode, initialize and unlock it */ /* get root inode, initialize and unlock it */
mutex_lock(&sysfs_mutex); mutex_lock(&sysfs_mutex);
......
...@@ -115,7 +115,6 @@ struct sysfs_addrm_cxt { ...@@ -115,7 +115,6 @@ struct sysfs_addrm_cxt {
* mount.c * mount.c
*/ */
extern struct sysfs_dirent sysfs_root; extern struct sysfs_dirent sysfs_root;
extern struct super_block *sysfs_sb;
extern struct kmem_cache *sysfs_dir_cachep; extern struct kmem_cache *sysfs_dir_cachep;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment