*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*
- * $Id: yaffs_guts.h,v 1.14 2003-01-14 23:15:32 charles Exp $
+ * $Id: yaffs_guts.h,v 1.16 2003-01-31 03:30:33 charles Exp $
*/
#ifndef __YAFFS_GUTS_H__
#define YAFFS_NOBJECT_BUCKETS 256
-#define YAFFS_RESERVED_BLOCKS 8
-
#define YAFFS_OBJECT_SPACE 0x40000
#define YAFFS_MAX_NAME_LENGTH 255
#define YAFFS_SHORT_NAME_LENGTH 15
{
// Entry parameters set up way early. Yaffs sets up the rest.
int nBytesPerChunk; // Should be a power of 2 >= 512
- int nChunksPerBlock;
- int startBlock; // Start block we're allowed to use
- int endBlock; // End block we're allowed to use
+ int nChunksPerBlock; // does not need to be a power of 2
+ int startBlock; // Start block we're allowed to use
+ int endBlock; // End block we're allowed to use
+ int nReservedBlocks; // We want this tuneable so that we can reduce
+ // reserved blocks on NOR and RAM.
int useNANDECC; // Flag to decide whether or not to use NANDECC
int nShortOpCaches; // If <= 0, then short op caching is disabled, else
int currentDirtyChecker; // Used to find current dirtiest block
- int garbageCollectionRequired;
// Operations since mount
int nPageWrites;
int nBlockErasures;
int nGCCopies;
int garbageCollections;
+ int passiveGarbageCollections;
int nRetriedWrites;
int nRetiredBlocks;
int eccFixed;
// yaffs_Spare bufferedSpare[YAFFS_CHUNKS_PER_BLOCK];
int bufferedBlock; // Which block is buffered here?
int doingBufferedBlockRewrite;
-
- int blockSelectedForGC;
yaffs_ChunkCache *srCache;
int srLastUse;