mtd/fs/jffs2 wbuf.c,1.84,1.85
David Woodhouse
dwmw2 at infradead.org
Wed Feb 2 17:12:08 EST 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv377
Modified Files:
wbuf.c
Log Message:
make NAND code work on NOR flash again
Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- wbuf.c 25 Jan 2005 20:11:11 -0000 1.84
+++ wbuf.c 2 Feb 2005 22:12:04 -0000 1.85
@@ -534,6 +534,9 @@
D1(printk(KERN_DEBUG "jffs2_flush_wbuf_gc() called for ino #%u...\n", ino));
+ if (!c->wbuf)
+ return 0;
+
down(&c->alloc_sem);
if (!jffs2_wbuf_pending_for_ino(c, ino)) {
D1(printk(KERN_DEBUG "Ino #%d not pending in wbuf. Returning\n", ino));
@@ -588,6 +591,9 @@
{
int ret;
+ if (!c->wbuf)
+ return 0;
+
down_write(&c->wbuf_sem);
ret = __jffs2_flush_wbuf(c, PAD_NOACCOUNT);
/* retry - maybe wbuf recover left some data in wbuf. */
More information about the linux-mtd-cvs
mailing list