projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Add stats tracking and control for background gc instrumentation
[yaffs2.git]
/
yaffs_guts.c
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index 6524f5f5dc39211897a8c7ad3d3802f711701cc2..389a57ca79f25efb475ef3e1311f3e6e4ab3c8b5 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-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--;
* We have to decrement free chunks so this works out properly.
*/
dev->nFreeChunks--;
+ bi->softDeletions--;
object->nDataChunks--;
object->nDataChunks--;
@@
-2499,8
+2500,10
@@
static unsigned yaffs_FindBlockForGarbageCollection(yaffs_Device *dev,
dev->param.nChunksPerBlock - dev->gcPagesInUse,
prioritised));
dev->param.nChunksPerBlock - dev->gcPagesInUse,
prioritised));
+ dev->nGCBlocks++;
if(background)
dev->backgroundGCs++;
if(background)
dev->backgroundGCs++;
+
dev->gcDirtiest = 0;
dev->gcPagesInUse = 0;
dev->gcNotDone = 0;
dev->gcDirtiest = 0;
dev->gcPagesInUse = 0;
dev->gcNotDone = 0;