Skip to content

Commit

Permalink
sysv: Add forgotten superblock lock init for v7 fs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
lkundrak authored and Al Viro committed Sep 30, 2013
1 parent 15c03dd commit 4947555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/sysv/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4947555

Please sign in to comment.