mtd/fs/jffs2 wbuf.c,1.65,1.66

gleixner at infradead.org gleixner at infradead.org
Thu Jun 17 13:09:13 EDT 2004


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

Modified Files:
	wbuf.c 
Log Message:
bad block check is superfluid here as it is done in nand_check_cleanmarker

Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- wbuf.c	17 Jun 2004 16:53:07 -0000	1.65
+++ wbuf.c	17 Jun 2004 17:09:10 -0000	1.66
@@ -846,13 +846,6 @@
 	size_t  retlen;
 	int	oob_size;
 
-
-	/* Check first if the block is bad. */
-	if (c->mtd->block_isbad (c->mtd, jeb->offset)) {
-		D1 (printk (KERN_WARNING "jffs2_check_nand_cleanmarker(): Bad block at %08x\n", jeb->offset));
-		return 2;
-	}	
-
 	/* allocate a buffer for all oob data in this sector */
 	oob_size = c->mtd->oobsize;
 	len = 4 * oob_size;





More information about the linux-mtd-cvs mailing list