Skip to contentSkip to conversation

sysv: Add forgotten superblock lock init for v7 fs

PATCH Applied Lubomir Rintel 3 participants 3 messages Sep 17, 2013 – Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 fs/sysv/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/sysv/super.c +1 -0
index d0c6a00..eda1095 100644
@@ -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);
Signature · 1 line
1.7.1
#1 lore raw
Quoted 5 lines · Lubomir Rintel

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

Looks good.

Al, can you add this to the next VFS pile?

Quoted 19 lines
---
 fs/sysv/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/sysv/super.c +1 -0
index d0c6a00..eda1095 100644
@@ -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);
Signature · 1 line
1.7.1

---end quoted text---

Applied
#2 lore raw
Quoted 1 line · Christoph Hellwig

Al, can you add this to the next VFS pile?

Applied.