aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c
index e5f6c2cfac38..cecd780e0f44 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -166,6 +166,8 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags)
166 if (!s) 166 if (!s)
167 return NULL; 167 return NULL;
168 168
169 INIT_LIST_HEAD(&s->s_mounts);
170
169 if (security_sb_alloc(s)) 171 if (security_sb_alloc(s))
170 goto fail; 172 goto fail;
171 173
@@ -188,7 +190,6 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags)
188 if (list_lru_init(&s->s_inode_lru)) 190 if (list_lru_init(&s->s_inode_lru))
189 goto fail; 191 goto fail;
190 192
191 INIT_LIST_HEAD(&s->s_mounts);
192 init_rwsem(&s->s_umount); 193 init_rwsem(&s->s_umount);
193 lockdep_set_class(&s->s_umount, &type->s_umount_key); 194 lockdep_set_class(&s->s_umount, &type->s_umount_key);
194 /* 195 /*