diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-04-20 14:36:01 +1200 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-04-20 14:36:01 +1200 |
commit | 6e5a71caad2176450f764d3e359fb972b86d83e2 (patch) | |
tree | 1e97e625fe976941a255851f3b2d2063c35d952d /yaffs_guts.h | |
parent | 36dc48ebac4140345b3f5955d5013f6c22ad827a (diff) |
yaffs: More background gc tweaks.
Slight changes to urgency thresholds
Fix problem where background gc was interfering with sync resulting in
checkpoints being lost.
Add more tracing for background gc.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_guts.h')
-rw-r--r-- | yaffs_guts.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/yaffs_guts.h b/yaffs_guts.h index 8c0b782..da41904 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -763,8 +763,10 @@ struct yaffs_DeviceStruct { __u32 nBlockErasures; __u32 nErasureFailures; __u32 nGCCopies; - __u32 garbageCollections; - __u32 passiveGarbageCollections; + __u32 allGCs; + __u32 passiveGCs; + __u32 oldestDirtyGCs; + __u32 backgroundGCs; __u32 nRetriedWrites; __u32 nRetiredBlocks; __u32 eccFixed; @@ -897,7 +899,7 @@ void yaffs_HandleDeferedFree(yaffs_Object *obj); void yaffs_UpdateDirtyDirectories(yaffs_Device *dev); -int yaffs_BackgroundGarbageCollect(yaffs_Device *dev); +int yaffs_BackgroundGarbageCollect(yaffs_Device *dev, unsigned urgency); /* Debug dump */ int yaffs_DumpObject(yaffs_Object *obj); |