[RFC] BUG Power loss recovery issues in JFFS2
David Woodhouse
dwmw2 at infradead.org
Fri Nov 16 22:06:35 EST 2007
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -37,8 +37,10 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info
BUG_ON(tn->csize == 0);
- if (!jffs2_is_writebuffered(c))
+ if (!jffs2_is_writebuffered(c)) {
+ printk("Er, let's just skip out of %s without actually checking. Who thought that was a good idea?\n", __func__);
goto adj_acc;
+ }
/* Calculate how many bytes were already checked */
ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode);
--
dwmw2
More information about the linux-mtd
mailing list