mtd/fs/jffs2 nodemgmt.c,1.80,1.81
David Woodhouse
dwmw2 at infradead.org
Tue Sep 24 06:26:59 EDT 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv869
Modified Files:
nodemgmt.c
Log Message:
Er, don't erase blocks while unchecked_size is still > 0. Not clever.
Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- nodemgmt.c 10 Sep 2002 07:22:31 -0000 1.80
+++ nodemgmt.c 24 Sep 2002 10:26:56 -0000 1.81
@@ -406,7 +406,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) {
+ } else if (!jeb->used_size && !jeb->unchecked_size) {
if (jeb == c->gcblock) {
D1(printk(KERN_DEBUG "gcblock at 0x%08x completely dirtied. Clearing gcblock...\n", jeb->offset));
c->gcblock = NULL;
More information about the linux-mtd-cvs
mailing list