summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 07:22:42 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 07:22:42 -0700
commit777cb1b53dd11dbec6157adc97e9f908f6e8458c (patch)
treea7fd28bcbb9196dba327cf56dfceb3b057360a00 /fs
parent277a4ed1df42134f66503db837e40f0b583ec63d (diff)
parent2fde99cb55fb9d9b88180512a5e8a5d939d27fec (diff)
Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6
* 'linux-next' of git://git.infradead.org/ubifs-2.6: UBIFS: mark VFS SB RO too
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c
index 77d5cf4a754..bcf5a16f30b 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)
if (!c->ro_media) {
c->ro_media = 1;
c->no_chk_data_crc = 0;
+ c->vfs_sb->s_flags |= MS_RDONLY;
ubifs_warn("switched to read-only mode, error %d", err);
dbg_dump_stack();
}