enum
{
Nicache= 64, /* number of inodes kept in pool */
};
/*
* a cached inode buffer
*/
struct Ibuf
{
Lru; /* must be first in structure */
int inuse; /* non-0 if in use */
ulong ino; /* index into inode table */
Inode inode; /* the inode contents */
};
/*
* in-core qid to inode mapping
*/
struct Imap
{
Lru; /* must be first in structure */
Qid qid;
Ibuf *b; /* cache buffer */
int inuse; /* non-0 if in use */
};
/*
* the inode cache
*/
struct Icache
{
Disk;
int nino; /* number of inodes */
ulong ib0; /* first inode block */
int nib; /* number of inode blocks */
int i2b; /* inodes to a block */