diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index 77d5cf4a7547..bcf5a16f30bb 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c | |||
@@ -64,6 +64,7 @@ void ubifs_ro_mode(struct ubifs_info *c, int err) | |||
64 | if (!c->ro_media) { | 64 | if (!c->ro_media) { |
65 | c->ro_media = 1; | 65 | c->ro_media = 1; |
66 | c->no_chk_data_crc = 0; | 66 | c->no_chk_data_crc = 0; |
67 | c->vfs_sb->s_flags |= MS_RDONLY; | ||
67 | ubifs_warn("switched to read-only mode, error %d", err); | 68 | ubifs_warn("switched to read-only mode, error %d", err); |
68 | dbg_dump_stack(); | 69 | dbg_dump_stack(); |
69 | } | 70 | } |