diff options
Diffstat (limited to 'fs/fat/misc.c')
-rw-r--r-- | fs/fat/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/misc.c b/fs/fat/misc.c index 8a8698119ff7..acc3aa30ee54 100644 --- a/fs/fat/misc.c +++ b/fs/fat/misc.c | |||
@@ -32,7 +32,7 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...) | |||
32 | 32 | ||
33 | if (opts->errors == FAT_ERRORS_PANIC) | 33 | if (opts->errors == FAT_ERRORS_PANIC) |
34 | panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id); | 34 | panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id); |
35 | else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) { | 35 | else if (opts->errors == FAT_ERRORS_RO && !sb_rdonly(sb)) { |
36 | sb->s_flags |= MS_RDONLY; | 36 | sb->s_flags |= MS_RDONLY; |
37 | fat_msg(sb, KERN_ERR, "Filesystem has been set read-only"); | 37 | fat_msg(sb, KERN_ERR, "Filesystem has been set read-only"); |
38 | } | 38 | } |