mtd/fs/jffs2/ecos/src fs-ecos.c,1.39,1.40

lunn at infradead.org lunn at infradead.org
Sat Dec 11 07:24:19 EST 2004


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

Modified Files:
	fs-ecos.c 
Log Message:
        * src/fs-ecos.c: Use filesystem locking not file locking otherwise
        the node cache can be corrupted by multiple operations on
        different files at the same time.


Index: fs-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/fs-ecos.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- fs-ecos.c	11 Nov 2004 12:46:17 -0000	1.39
+++ fs-ecos.c	11 Dec 2004 12:24:16 -0000	1.40
@@ -97,7 +97,7 @@
 
 #ifdef CYGOPT_FS_JFFS2_WRITE
 FSTAB_ENTRY(jffs2_fste, "jffs2", 0,
-	    CYG_SYNCMODE_FILE_FILESYSTEM | CYG_SYNCMODE_IO_FILE,
+	    CYG_SYNCMODE_FILE_FILESYSTEM | CYG_SYNCMODE_IO_FILESYSTEM,
 	    jffs2_mount,
 	    jffs2_umount,
 	    jffs2_open,
@@ -110,7 +110,7 @@
 	    jffs2_chdir, jffs2_stat, jffs2_getinfo, jffs2_setinfo);
 #else
 FSTAB_ENTRY(jffs2_fste, "jffs2", 0,
-	    CYG_SYNCMODE_FILE_FILESYSTEM | CYG_SYNCMODE_IO_FILE,
+	    CYG_SYNCMODE_FILE_FILESYSTEM | CYG_SYNCMODE_IO_FILESYSTEM,
 	    jffs2_mount,
 	    jffs2_umount,
 	    jffs2_open,





More information about the linux-mtd-cvs mailing list