aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysv/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysv/inode.c')
-rw-r--r--fs/sysv/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c
index a8189864c241..e0a39f1fb88e 100644
--- a/fs/sysv/inode.c
+++ b/fs/sysv/inode.c
@@ -61,10 +61,12 @@ clean:
61static int sysv_remount(struct super_block *sb, int *flags, char *data) 61static int sysv_remount(struct super_block *sb, int *flags, char *data)
62{ 62{
63 struct sysv_sb_info *sbi = SYSV_SB(sb); 63 struct sysv_sb_info *sbi = SYSV_SB(sb);
64 lock_super(sb);
64 if (sbi->s_forced_ro) 65 if (sbi->s_forced_ro)
65 *flags |= MS_RDONLY; 66 *flags |= MS_RDONLY;
66 if (!(*flags & MS_RDONLY)) 67 if (!(*flags & MS_RDONLY))
67 sb->s_dirt = 1; 68 sb->s_dirt = 1;
69 unlock_super(sb);
68 return 0; 70 return 0;
69} 71}
70 72