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

Forrest Zhao forrest.zhao at intel.com
Fri Nov 18 02:25:31 EST 2005


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

Modified Files:
	jffs2_fs_sb.h 
Log Message:
This patch provides the capability to tracking the erase count of each erase block. User can read the erase count by jffs2dump utility.


Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- jffs2_fs_sb.h	11 Nov 2005 08:51:40 -0000	1.57
+++ jffs2_fs_sb.h	18 Nov 2005 07:25:28 -0000	1.58
@@ -117,6 +117,9 @@
 
 	uint32_t ebh_size;	/* This is the space size occupied by eraseblock_header on flash */
 
+	uint32_t total_erase_count; /* The summary erase count of all erase blocks */
+	uint32_t nr_blocks_with_ebh; /* The number of erase blocks, which has eraseblock header on it */
+	uint32_t max_erase_count; /* The maximum erase count of all erase blocks */
 	/* OS-private pointer for getting back to master superblock info */
 	void *os_priv;
 };





More information about the linux-mtd-cvs mailing list