mtd/fs/jffs2/ecos/src file-ecos.c,1.3,1.4

David Woodhouse dwmw2 at infradead.org
Tue Jan 21 13:11:32 EST 2003


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

Modified Files:
	file-ecos.c 
Log Message:
header cleanups, mode_t conversion

Index: file-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/file-ecos.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- file-ecos.c	12 Jan 2003 13:21:29 -0000	1.3
+++ file-ecos.c	21 Jan 2003 18:11:29 -0000	1.4
@@ -12,6 +12,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/pagemap.h>
 #include "nodelist.h"
 #include "crc32.h"
 
@@ -101,7 +102,7 @@
 
 		ri.ino = cpu_to_je32(f->inocache->ino);
 		ri.version = cpu_to_je32(++f->highest_version);
-		ri.mode = cpu_to_je32(inode->i_mode);
+		ri.mode = cpu_to_jemode(inode->i_mode);
 		ri.uid = cpu_to_je16(inode->i_uid);
 		ri.gid = cpu_to_je16(inode->i_gid);
 
@@ -175,7 +176,7 @@
 
 	/* Set the fields that the generic jffs2_write_inode_range() code can't find */
 	ri->ino = cpu_to_je32(inode->i_ino);
-	ri->mode = cpu_to_je32(inode->i_mode);
+	ri->mode = cpu_to_jemode(inode->i_mode);
 	ri->uid = cpu_to_je16(inode->i_uid);
 	ri->gid = cpu_to_je16(inode->i_gid);
 	ri->isize = cpu_to_je32((uint32_t)inode->i_size);





More information about the linux-mtd-cvs mailing list