projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc23b86
)
Update free chunk count for skipped chunks
author
charles
<charles>
Fri, 23 Jan 2009 00:31:01 +0000
(
00:31
+0000)
committer
charles
<charles>
Fri, 23 Jan 2009 00:31:01 +0000
(
00:31
+0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index eff7bd4043c1114c13a9d2d48dd5efbebddc1372..52b12fb1769953625ad987d0e1647b6ac3b7ca64 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-13,7
+13,7
@@
const char *yaffs_guts_c_version =
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.7
4 2009-01-18 23:24:08
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.7
5 2009-01-23 00:31:01
charles Exp $";
#include "yportenv.h"
#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));
(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;
}else if (tags.chunkId > 0) {
/* chunkId > 0 so it is a data chunk... */
unsigned int endpos;