changeset 265:d240bd49f522

Update free chunk count for skipped chunks
author charles
date Fri, 23 Jan 2009 00:31:01 +0000
parents 3425e444fc83
children 0563e7fac4a0
files yaffs_guts.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -6302,8 +6302,8 @@ static int yaffs_ScanBackwards(yaffs_Dev
 				  (TSTR(" Unfixed ECC in chunk(%d:%d), chunk ignored"TENDSTR),
 				  blk, c));
 
-				/* Don't actually delete because the chunk is not yet set up as being in use */
-				/* yaffs_DeleteChunk(dev, chunk, 1, __LINE__); */
+				  dev->nFreeChunks++;
+
 			}else if (tags.chunkId > 0) {
 				/* chunkId > 0 so it is a data chunk... */
 				unsigned int endpos;