mtd/fs/jffs2 gc.c,1.143,1.144

David Woodhouse dwmw2 at infradead.org
Tue Dec 21 06:18:54 EST 2004


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv23110

Modified Files:
	gc.c 
Log Message:
Fix list-corrupting typo in write retry. Thanks to Per Hedblom


Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/gc.c,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- gc.c	16 Nov 2004 20:36:11 -0000	1.143
+++ gc.c	21 Dec 2004 11:18:50 -0000	1.144
@@ -602,7 +602,7 @@
 			printk(KERN_NOTICE "Not marking the space at 0x%08x as dirty because the flash driver returned retlen zero\n", nraw->flash_offset);
                         jffs2_free_raw_node_ref(nraw);
 		}
-		if (!retried && (nraw == jffs2_alloc_raw_node_ref())) {
+		if (!retried && (nraw = jffs2_alloc_raw_node_ref())) {
 			/* Try to reallocate space and retry */
 			uint32_t dummy;
 			struct jffs2_eraseblock *jeb = &c->blocks[phys_ofs / c->sector_size];





More information about the linux-mtd-cvs mailing list