Skip to content

Commit

Permalink
sysfs: Kill unused sysfs_sb variable.
Browse files Browse the repository at this point in the history
Now that there are no more users we can remove
the sysfs_sb variable.

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
ebiederm authored and gregkh committed Mar 8, 2010
1 parent fac2622 commit 0f4288e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions fs/sysfs/mount.c
Expand Up @@ -23,7 +23,6 @@


static struct vfsmount *sysfs_mount;
struct super_block * sysfs_sb = NULL;
struct kmem_cache *sysfs_dir_cachep;

static const struct super_operations sysfs_ops = {
Expand All @@ -50,7 +49,6 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = SYSFS_MAGIC;
sb->s_op = &sysfs_ops;
sb->s_time_gran = 1;
sysfs_sb = sb;

/* get root inode, initialize and unlock it */
mutex_lock(&sysfs_mutex);
Expand Down
1 change: 0 additions & 1 deletion fs/sysfs/sysfs.h
Expand Up @@ -115,7 +115,6 @@ struct sysfs_addrm_cxt {
* mount.c
*/
extern struct sysfs_dirent sysfs_root;
extern struct super_block *sysfs_sb;
extern struct kmem_cache *sysfs_dir_cachep;

/*
Expand Down

0 comments on commit 0f4288e

Please sign in to comment.