mtd/fs/jffs2 wbuf.c,1.80,1.81 build.c,1.63,1.64

David Woodhouse dwmw2 at infradead.org
Sat Nov 20 05:44:10 EST 2004


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

Modified Files:
	wbuf.c build.c 
Log Message:
wbuf_sem is now nand-only

Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- wbuf.c	20 Nov 2004 10:35:40 -0000	1.80
+++ wbuf.c	20 Nov 2004 10:44:07 -0000	1.81
@@ -1129,9 +1129,9 @@
 	int res;
 
 	/* Initialise write buffer */
+	init_rwsem(&c->wbuf_sem);
 	c->wbuf_pagesize = c->mtd->oobblock;
 	c->wbuf_ofs = 0xFFFFFFFF;
-
 	
 	c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
 	if (!c->wbuf)
@@ -1162,6 +1162,7 @@
 	c->cleanmarker_size = 16;
 
 	/* Initialize write buffer */
+	init_rwsem(&c->wbuf_sem);
 	c->wbuf_pagesize = c->mtd->eccsize;
 	c->wbuf_ofs = 0xFFFFFFFF;
 

Index: build.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/build.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- build.c	20 Nov 2004 08:45:15 -0000	1.63
+++ build.c	20 Nov 2004 10:44:07 -0000	1.64
@@ -326,7 +326,6 @@
 
 	init_MUTEX(&c->alloc_sem);
 	init_MUTEX(&c->erase_free_sem);
-	init_rwsem(&c->wbuf_sem);
 	init_waitqueue_head(&c->erase_wait);
 	init_waitqueue_head(&c->inocache_wq);
 	spin_lock_init(&c->erase_completion_lock);





More information about the linux-mtd-cvs mailing list