mtd/fs/jffs3 wbuf.c,3.12,3.13

David Woodhouse dwmw2 at infradead.org
Wed Feb 2 17:13:20 EST 2005


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

Modified Files:
	wbuf.c 
Log Message:
make NAND code work on NOR flash again

Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/wbuf.c,v
retrieving revision 3.12
retrieving revision 3.13
diff -u -r3.12 -r3.13
--- wbuf.c	25 Jan 2005 20:11:12 -0000	3.12
+++ wbuf.c	2 Feb 2005 22:13:17 -0000	3.13
@@ -516,6 +516,9 @@
 
 	DBG_WBUF(1, "Ino #%u...\n", ino);
 
+	if (!c->wbuf)
+		return 0;
+
 	down(&c->alloc_sem);
 	if (!jffs3_wbuf_pending_for_ino(c, ino)) {
 		DBG_WBUF(1, "Ino #%d not pending in wbuf. Returning\n", ino);
@@ -570,6 +573,9 @@
 {
 	int ret;
 
+	if (!c->wbuf)
+		return 0;
+
 	down_write(&c->wbuf_sem);
 	ret = __jffs3_flush_wbuf(c, PAD_NOACCOUNT);
 	/* retry - maybe wbuf recover left some data in wbuf. */





More information about the linux-mtd-cvs mailing list