mtd/include/linux jffs2_fs_sb.h,1.46,1.47
Artem Bityuckiy
dedekind at infradead.org
Fri Nov 19 08:41:20 EST 2004
Update of /home/cvs/mtd/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv4648/include/linux
Modified Files:
jffs2_fs_sb.h
Log Message:
Bugfix: fix the race bug when a writed and reader concurrently access
the wbuf. Introduce new rw semaphore to fix this.
Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- jffs2_fs_sb.h 3 Nov 2004 12:57:39 -0000 1.46
+++ jffs2_fs_sb.h 19 Nov 2004 13:41:17 -0000 1.47
@@ -35,9 +35,8 @@
struct semaphore alloc_sem; /* Used to protect all the following
fields, and also to protect against
- out-of-order writing of nodes.
- And GC.
- */
+ 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 */
More information about the linux-mtd-cvs
mailing list