aboutsummaryrefslogtreecommitdiff
path: root/fs/configfs/mount.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-17 16:24:54 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:47 -0400
commitb7c177fcd2022ca8572284deb8f9b6ab5730eafb (patch)
treefe4c55e5c504d6db8de36336ecd0b493a7f71c46 /fs/configfs/mount.c
parent81d44ed159e3e81f7e62cee2d0fe68aae0c95e78 (diff)
downloadlinux-stericsson-b7c177fcd2022ca8572284deb8f9b6ab5730eafb.tar.gz
configfs: kill configfs_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs/mount.c')
-rw-r--r--fs/configfs/mount.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c
index eb41adc28cfe..cc829fc85d77 100644
--- a/fs/configfs/mount.c
+++ b/fs/configfs/mount.c
@@ -38,7 +38,6 @@
#define CONFIGFS_MAGIC 0x62656570
struct vfsmount * configfs_mount = NULL;
-struct super_block * configfs_sb = NULL;
struct kmem_cache *configfs_dir_cachep;
static int configfs_mnt_count = 0;
@@ -77,10 +76,9 @@ static int configfs_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = CONFIGFS_MAGIC;
sb->s_op = &configfs_ops;
sb->s_time_gran = 1;
- configfs_sb = sb;
inode = configfs_new_inode(S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO,
- &configfs_root);
+ &configfs_root, sb);
if (inode) {
inode->i_op = &configfs_root_inode_operations;
inode->i_fop = &configfs_dir_operations;