Change checkpoint to calculate number of blocks required instead of using a hardcoded...
[yaffs2.git] / yaffs_guts.h
index 87b539b05b71284a20efcb9350ba5e653a8aecce..6251f9a7eee61a8a4a5de202e366f843c6af6ea8 100644 (file)
@@ -544,7 +544,7 @@ struct yaffs_DeviceStruct {
        /* Stuff used by the shared space checkpointing mechanism */
        /* If this value is zero, then this mechanism is disabled */
        
-       int nCheckpointReservedBlocks; /* Blocks to reserve for checkpoint data */
+//     int nCheckpointReservedBlocks; /* Blocks to reserve for checkpoint data */
 
        
 
@@ -663,6 +663,8 @@ struct yaffs_DeviceStruct {
        __u32 checkpointSum;
        __u32 checkpointXor;
        
+       int nCheckpointBlocksRequired; /* Number of blocks needed to store current checkpoint set */
+       
        /* Block Info */
        yaffs_BlockInfo *blockInfo;
        __u8 *chunkBits;        /* bitmap of chunks in use */