sysfs: Kill unused sysfs_sb variable.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 13 Feb 2010 03:22:28 +0000 (19:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:52 +0000 (17:04 -0800)
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>
fs/sysfs/mount.c
fs/sysfs/sysfs.h

index 89db07e489b03267c852aed109bb5336c8c28d50..0cb10884a2fc26a8ab40726efd810c3f7682d8c8 100644 (file)
@@ -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 = {
@@ -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);
index 7593d71d92f8a29f2637647ab474f4473cf5463f..30f5a44fb5d3a074b36c6c4520e40e5aa79cdf9c 100644 (file)
@@ -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;
 
 /*