mtd/include/linux jffs2_fs_sb.h,1.47,1.48

David Woodhouse dwmw2 at infradead.org
Sat Nov 20 05:41:15 EST 2004


Update of /home/cvs/mtd/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv17063

Modified Files:
	jffs2_fs_sb.h 
Log Message:
include rwsem.h and make wbuf_sem nand-only


Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- jffs2_fs_sb.h	19 Nov 2004 13:41:17 -0000	1.47
+++ jffs2_fs_sb.h	20 Nov 2004 10:41:12 -0000	1.48
@@ -11,6 +11,7 @@
 #include <linux/timer.h>
 #include <linux/wait.h>
 #include <linux/list.h>
+#include <linux/rwsem.h>
 
 #define JFFS2_SB_FLAG_RO 1
 #define JFFS2_SB_FLAG_MOUNTING 2
@@ -36,7 +37,6 @@
 	struct semaphore alloc_sem;	/* Used to protect all the following 
 					   fields, and also to protect against
 					   out-of-order writing of nodes. And GC. */
-	struct rw_semaphore wbuf_sem;	/* Protects the write buffer */
 	uint32_t cleanmarker_size;	/* Size of an _inline_ CLEANMARKER
 					 (i.e. zero for OOB CLEANMARKER */
 
@@ -102,6 +102,8 @@
 	uint32_t wbuf_pagesize;
 	struct jffs2_inodirty *wbuf_inodes;
 
+	struct rw_semaphore wbuf_sem;	/* Protects the write buffer */
+
 	/* Information about out-of-band area usage... */
 	struct nand_oobinfo *oobinfo;
 	uint32_t badblock_pos;





More information about the linux-mtd-cvs mailing list