UBIFS: introduce new flags for RO mounts
[deliverable/linux.git] / fs / ubifs / gc.c
index d927196d730b6a4a1e6f3c746931ef5159f794f0..151f108828204dc4d88c9d890fbcce051b2d8912 100644 (file)
@@ -616,7 +616,7 @@ int ubifs_garbage_collect(struct ubifs_info *c, int anyway)
        struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf;
 
        ubifs_assert_cmt_locked(c);
-       ubifs_assert(!c->ro_media);
+       ubifs_assert(!c->ro_media && !c->ro_mount);
 
        if (ubifs_gc_should_commit(c))
                return -EAGAIN;
This page took 0.024868 seconds and 5 git commands to generate.