]> err.no Git - linux-2.6/blobdiff - fs/jffs2/wbuf.c
[JFFS2] Disable summary after wbuf recovery
[linux-2.6] / fs / jffs2 / wbuf.c
index 4fac6dd539545f91ef33fae876737202b93d2f55..f9da0e755a3ec5b2d7d71adbaa14ad99d774601e 100644 (file)
@@ -345,6 +345,9 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
                return;
        }
 
+       /* The summary is not recovered, so it must be disabled for this erase block */
+       jffs2_sum_disable_collecting(c->summary);
+
        ret = jffs2_prealloc_raw_node_refs(c, c->nextblock, nr_refile);
        if (ret) {
                printk(KERN_WARNING "Failed to allocate node refs for wbuf recovery. Data loss ensues.\n");