projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fdee36
)
Clear shadowing during garbage collection since its work is done
author
charles
<charles>
Sun, 6 Dec 2009 22:53:10 +0000
(22:53 +0000)
committer
charles
<charles>
Sun, 6 Dec 2009 22:53:10 +0000
(22:53 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index 40b7948ca6c929c16de86e66378d9b3959860040..9f6ba510e635aed3168a865923868b519bc51482 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-12,7
+12,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.9
6 2009-12-03 03:42:28
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.9
7 2009-12-06 22:53:10
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-3135,6
+3135,7
@@
static int yaffs_GarbageCollectBlock(yaffs_Device *dev, int block,
if (tags.chunkId == 0) {
/* It is an object Id,
* We need to nuke the shrinkheader flags first
if (tags.chunkId == 0) {
/* It is an object Id,
* We need to nuke the shrinkheader flags first
+ * Also need to clean up shadowing.
* We no longer want the shrinkHeader flag since its work is done
* and if it is left in place it will mess up scanning.
*/
* We no longer want the shrinkHeader flag since its work is done
* and if it is left in place it will mess up scanning.
*/
@@
-3143,6
+3144,9
@@
static int yaffs_GarbageCollectBlock(yaffs_Device *dev, int block,
oh = (yaffs_ObjectHeader *)buffer;
oh->isShrink = 0;
tags.extraIsShrinkHeader = 0;
oh = (yaffs_ObjectHeader *)buffer;
oh->isShrink = 0;
tags.extraIsShrinkHeader = 0;
+ oh->shadowsObject = 0;
+ oh->inbandShadowsObject = 0;
+ tags.extraShadows = 0;
yaffs_VerifyObjectHeader(object, oh, &tags, 1);
}
yaffs_VerifyObjectHeader(object, oh, &tags, 1);
}