mtd/include/linux jffs2_fs_i.h,1.17,1.18

Artem Bityuckiy dedekind at infradead.org
Sun Jul 17 07:13:51 EDT 2005


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

Modified Files:
	jffs2_fs_i.h 
Log Message:
[JFFS2] Don't use f->dents for symlink target

JFFS2 uses f->dents to store the pointer to the symlink target string (in case
the inode is symlink). This is somewhat ugly to use the same field for
different reasons. Introduce distinct field f->target for this purpose.
Note, f->fragtree, f->dents, f->target may probably be put in a union.


Index: jffs2_fs_i.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_i.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- jffs2_fs_i.h	11 Nov 2004 23:51:27 -0000	1.17
+++ jffs2_fs_i.h	17 Jul 2005 11:13:48 -0000	1.18
@@ -32,6 +32,9 @@
 	/* Directory entries */
 	struct jffs2_full_dirent *dents;
 
+	/* The target path if this is the inode of a symlink */
+	unsigned char *target;
+
 	/* Some stuff we just have to keep in-core at all times, for each inode. */
 	struct jffs2_inode_cache *inocache;
 





More information about the linux-mtd-cvs mailing list