yaffs Clean up some yaffs1 related comments and messages
authorCharles Manning <cdhmanning@gmail.com>
Sun, 15 Aug 2010 22:07:57 +0000 (10:07 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Sun, 15 Aug 2010 22:07:57 +0000 (10:07 +1200)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_guts.c
yaffs_verify.c
yaffs_yaffs1.c

index 6524f5f..a1782e7 100644 (file)
@@ -2223,6 +2223,7 @@ static int yaffs_GarbageCollectBlock(yaffs_Device *dev, int block,
                                         * We have to decrement free chunks so this works out properly.
                                         */
                                        dev->nFreeChunks--;
+                                       bi->softDeletions--;
 
                                        object->nDataChunks--;
 
index 4511c0f..a600aa6 100644 (file)
@@ -97,7 +97,6 @@ void yaffs_VerifyCollectedBlock(yaffs_Device *dev, yaffs_BlockInfo *bi, int n)
        yaffs_VerifyBlock(dev, bi, n);
 
        /* After collection the block should be in the erased state */
-       /* This will need to change if we do partial gc */
 
        if (bi->blockState != YAFFS_BLOCK_STATE_COLLECTING &&
                        bi->blockState != YAFFS_BLOCK_STATE_EMPTY) {
index 1b8fcf1..78cc819 100644 (file)
@@ -231,6 +231,11 @@ int yaffs1_Scan(yaffs_Device *dev)
                                                shadowFixerList = fixer;
                                                fixer->objectId = tags.objectId;
                                                fixer->shadowedId = oh->shadowsObject;
+                                               T(YAFFS_TRACE_SCAN,
+                                                 (TSTR
+                                                  (" Shadow fixer: %d shadows %d" TENDSTR),
+                                                  fixer->objectId, fixer->shadowedId));
+
                                        }
 
                                }