Mercurial > yaffs-ecoscentric-gpl
changeset 254:7fbb318e9822
Update free chunk count for skipped chunks
| author | charles <charles> |
|---|---|
| date | Fri, 23 Jan 2009 00:31:01 +0000 |
| parents | 6dd9ed6bed42 |
| children | 6bfeafb85255 |
| files | yaffs_guts.c |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -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_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;
