mtd/include/linux jffs2_fs_sb.h,1.28,1.29

David Woodhouse dwmw2 at infradead.org
Tue Jun 25 21:20:45 EDT 2002


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

Modified Files:
	jffs2_fs_sb.h 
Log Message:
Dynamically allocate inocache_list, so it can be large enough to be 
useful without making the super_block union too huge in 2.4.


Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- jffs2_fs_sb.h	11 May 2002 00:10:25 -0000	1.28
+++ jffs2_fs_sb.h	26 Jun 2002 01:20:43 -0000	1.29
@@ -9,8 +9,6 @@
 #include <asm/semaphore.h>
 #include <linux/list.h>
 
-#define INOCACHE_HASHSIZE 14
-
 #define JFFS2_SB_FLAG_RO 1
 #define JFFS2_SB_FLAG_MOUNTING 2
 
@@ -67,7 +65,7 @@
 						   against erase completion handler */
 	wait_queue_head_t erase_wait;		/* For waiting for erases to complete */
 
-	struct jffs2_inode_cache *inocache_list[INOCACHE_HASHSIZE];
+	struct jffs2_inode_cache **inocache_list;
 	spinlock_t inocache_lock;
 	/* This _really_ speeds up mounts. */
 	struct jffs2_inode_cache *inocache_last;





More information about the linux-mtd-cvs mailing list