mtd/fs/jffs2 erase.c,1.75,1.76

Artem Bityuckiy dedekind at infradead.org
Tue May 3 11:11:43 EDT 2005


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

Modified Files:
	erase.c 
Log Message:
Fix the bug that caouses problems when compiling for NOR.
We read  a newly erased block so we don't need to check ECC.


Index: erase.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/erase.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- erase.c	5 Apr 2005 12:51:54 -0000	1.75
+++ erase.c	3 May 2005 15:11:40 -0000	1.76
@@ -333,10 +333,7 @@
 
 			bad_offset = ofs;
 
-			if (!jffs2_is_writebuffered(c) || !jffs2_cleanmarker_oob(c))
-				ret = c->mtd->read(c->mtd, ofs, readlen, &retlen, ebuf);
-			else
-				ret = c->mtd->read_ecc(c->mtd, ofs, readlen, &retlen, ebuf, NULL, c->oobinfo);
+			ret = c->mtd->read(c->mtd, ofs, readlen, &retlen, ebuf);
 
 			if (ret) {
 				printk(KERN_WARNING "Read of newly-erased block at 0x%08x failed: %d. Putting on bad_list\n", ofs, ret);





More information about the linux-mtd-cvs mailing list