Update free chunk count for skipped chunks
authorcharles <charles>
Fri, 23 Jan 2009 00:31:01 +0000 (00:31 +0000)
committercharles <charles>
Fri, 23 Jan 2009 00:31:01 +0000 (00:31 +0000)
yaffs_guts.c

index eff7bd4..52b12fb 100644 (file)
@@ -13,7 +13,7 @@
 
 
 const char *yaffs_guts_c_version =
-    "$Id: yaffs_guts.c,v 1.74 2009-01-18 23:24:08 charles Exp $";
+    "$Id: yaffs_guts.c,v 1.75 2009-01-23 00:31:01 charles Exp $";
 
 #include "yportenv.h"
 
@@ -6302,8 +6302,8 @@ static int yaffs_ScanBackwards(yaffs_Device * 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;