mtd/include/linux jffs2_fs_sb.h,1.43,1.44

David Woodhouse dwmw2 at infradead.org
Fri Oct 3 11:54:51 EDT 2003


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

Modified Files:
	jffs2_fs_sb.h 
Log Message:
Dynamic reserved block counts

Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- jffs2_fs_sb.h	2 Oct 2003 16:31:48 -0000	1.43
+++ jffs2_fs_sb.h	3 Oct 2003 15:54:49 -0000	1.44
@@ -54,6 +54,13 @@
 	uint32_t nr_free_blocks;
 	uint32_t nr_erasing_blocks;
 
+	/* Number of free blocks there must be before we... */
+	uint8_t resv_blocks_write;	/* ... allow a normal filesystem write */
+	uint8_t resv_blocks_deletion;	/* ... allow a normal filesystem deletion */
+	uint8_t resv_blocks_gctrigger;	/* ... wake up the GC thread */
+	uint8_t resv_blocks_gcbad;	/* ... pick a block from the bad_list to GC */
+	uint8_t resv_blocks_gcmerge;	/* ... merge pages when garbage collecting */
+
 	uint32_t nr_blocks;
 	struct jffs2_eraseblock *blocks;	/* The whole array of blocks. Used for getting blocks 
 						 * from the offset (blocks[ofs / sector_size]) */




More information about the linux-mtd-cvs mailing list