Lines Matching defs:Cache
22 struct Cache struct
24 QLock lk;
25 int ref;
26 int mode;
28 Disk *disk;
29 int size; /* block size */
30 int ndmap; /* size of per-block dirty pointer map used in blockWrite */
31 VtConn *z;
32 u32int now; /* ticks for usage timestamps */
33 Block **heads; /* hash table for finding address */
34 int nheap; /* number of available victims */
35 Block **heap; /* heap for locating victims */
36 long nblocks; /* number of blocks allocated */
37 Block *blocks; /* array of block descriptors */
38 u8int *mem; /* memory for all block data & blists */
40 BList *blfree;
41 Rendez blrend;
43 int ndirty; /* number of dirty blocks in the cache */
44 int maxdirty; /* max number of dirty blocks */
45 u32int vers;
47 long hashSize;
49 FreeList *fl;
51 Rendez die; /* daemon threads should die when QLock != nil */
53 Rendez flush;
54 Rendez flushwait;
55 Rendez heapwait;
56 BAddr *baddr;
57 int bw, br, be;
58 int nflush;
60 Periodic *sync;
63 BList *uhead;
64 BList *utail;
65 Rendez unlink;
68 int nused;
69 int ndisk;