X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_guts.h;h=dabcfe6e5d77b1247f746b945e07005d808dad40;hb=ba0c6c81e76e17d038d169aa756ab430f9de7a39;hp=7643dfc6d2805d9201ed29059275738ef0022ac5;hpb=adf8ff155a242969024595f8750f191be6b8acaf;p=yaffs2.git diff --git a/yaffs_guts.h b/yaffs_guts.h index 7643dfc..dabcfe6 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -598,6 +598,9 @@ struct yaffs_DeviceParamStruct { /* Callback to mark the superblock dirty */ void (*markSuperBlockDirty)(struct yaffs_DeviceStruct *dev); + + /* Callback to control garbage collection. */ + unsigned (*gcControl)(struct yaffs_DeviceStruct *dev); /* Debug control flags. Don't use unless you know what you're doing */ int useHeaderFileSize; /* Flag to determine if we should use file sizes from the header */ @@ -751,23 +754,23 @@ struct yaffs_DeviceStruct { /* Statistcs */ - int nPageWrites; - int nPageReads; - int nBlockErasures; - int nErasureFailures; - int nGCCopies; - int garbageCollections; - int passiveGarbageCollections; - int nRetriedWrites; - int nRetiredBlocks; - int eccFixed; - int eccUnfixed; - int tagsEccFixed; - int tagsEccUnfixed; - int nDeletions; - int nUnmarkedDeletions; - int refreshCount; - int cacheHits; + __u32 nPageWrites; + __u32 nPageReads; + __u32 nBlockErasures; + __u32 nErasureFailures; + __u32 nGCCopies; + __u32 garbageCollections; + __u32 passiveGarbageCollections; + __u32 nRetriedWrites; + __u32 nRetiredBlocks; + __u32 eccFixed; + __u32 eccUnfixed; + __u32 tagsEccFixed; + __u32 tagsEccUnfixed; + __u32 nDeletions; + __u32 nUnmarkedDeletions; + __u32 refreshCount; + __u32 cacheHits; };