aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysv
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysv')
-rw-r--r--fs/sysv/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c
index cd80316302cc..a8189864c241 100644
--- a/fs/sysv/inode.c
+++ b/fs/sysv/inode.c
@@ -72,6 +72,8 @@ static void sysv_put_super(struct super_block *sb)
72{ 72{
73 struct sysv_sb_info *sbi = SYSV_SB(sb); 73 struct sysv_sb_info *sbi = SYSV_SB(sb);
74 74
75 lock_kernel();
76
75 if (sb->s_dirt) 77 if (sb->s_dirt)
76 sysv_write_super(sb); 78 sysv_write_super(sb);
77 79
@@ -87,6 +89,8 @@ static void sysv_put_super(struct super_block *sb)
87 brelse(sbi->s_bh2); 89 brelse(sbi->s_bh2);
88 90
89 kfree(sbi); 91 kfree(sbi);
92
93 unlock_kernel();
90} 94}
91 95
92static int sysv_statfs(struct dentry *dentry, struct kstatfs *buf) 96static int sysv_statfs(struct dentry *dentry, struct kstatfs *buf)