summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2013-09-18 12:39:16 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-29 22:02:02 -0400
commit49475555848d396a0c78fb2f8ecceb3f3f263ef1 (patch)
tree396d31255def39c7a3f5cd4f9db0fa2ef03ccc2a /fs
parent15c03dd4859ab16f9212238f29dd315654aa94f6 (diff)
sysv: Add forgotten superblock lock init for v7 fs
Superblock lock was replaced with (un)lock_super() removal, but left uninitialized for Seventh Edition UNIX filesystem in the following commit (3.7): c07cb01 sysv: drop lock/unlock super Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/sysv/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index d0c6a007ce83..eda10959714f 100644
--- a/fs/sysv/super.c
+++ b/fs/sysv/super.c
@@ -487,6 +487,7 @@ static int v7_fill_super(struct super_block *sb, void *data, int silent)
sbi->s_sb = sb;
sbi->s_block_base = 0;
sbi->s_type = FSTYPE_V7;
+ mutex_init(&sbi->s_lock);
sb->s_fs_info = sbi;
sb_set_blocksize(sb, 512);