Data corrupted
Artem B. Bityuckiy
dedekind at infradead.org
Thu Feb 17 13:26:26 EST 2005
Heiko,
please try this patch (fs/jffs2/nodemgmt.c).
--- nodemgmt.c 2005-01-25 23:11:11.000000000 +0300
+++ nodemgmt-fixed.c 2005-02-17 21:22:30.608220411 +0300
@@ -483,7 +483,7 @@
if (jeb == c->nextblock) {
D2(printk(KERN_DEBUG "Not moving nextblock 0x%08x to
dirty/erase_pending list\n", jeb->offset));
- } else if (!jeb->used_size && !jeb->unchecked_size) {
+ } else if ((jeb->used_size + jeb->unchecked_size) ==
PAD(c->cleanmarker_size)) {
if (jeb == c->gcblock) {
D1(printk(KERN_DEBUG "gcblock at 0x%08x completely
dirtied. Clearing gcblock...\n", jeb->offset));
c->gcblock = NULL;
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
More information about the linux-mtd
mailing list