mtd/include/linux jffs2_fs_sb.h,1.56,1.57

Forrest Zhao forrest.zhao at intel.com
Fri Nov 11 03:51:43 EST 2005


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

Modified Files:
	jffs2_fs_sb.h 
Log Message:
This patch uses "slab cache + pointers" to replace the memory allocation mechanism for struct jffs2_eraseblock in JFFS2.
In particular, this patch reduce the continuous memory allocation pressure in kernel space.



Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- jffs2_fs_sb.h	7 Nov 2005 11:14:52 -0000	1.56
+++ jffs2_fs_sb.h	11 Nov 2005 08:51:40 -0000	1.57
@@ -64,7 +64,7 @@
 	uint32_t nospc_dirty_size;
 
 	uint32_t nr_blocks;
-	struct jffs2_eraseblock *blocks;	/* The whole array of blocks. Used for getting blocks
+	struct jffs2_eraseblock **blocks;	/* The whole array of blocks. Used for getting blocks
 						 * from the offset (blocks[ofs / sector_size]) */
 	struct jffs2_eraseblock *nextblock;	/* The block we're currently filling */
 





More information about the linux-mtd-cvs mailing list