#ifndef __PFS_CONST_H__
#define __PFS_CONST_H__
-#define NR_INODES 256 /* # slots in "in core" inode table */
+#define PFS_NR_INODES 512 /* # slots in "in core" inode table */
/* Size of descriptor table for unix domain sockets. This should be
* equal to the maximum number of minor devices (currently 256).
EXTERN int unmountdone;
/* Inode map. */
-EXTERN bitchunk_t inodemap[FS_BITMAP_CHUNKS(NR_INODES)];
+EXTERN bitchunk_t inodemap[FS_BITMAP_CHUNKS(PFS_NR_INODES)];
#endif
LIST_INIT(rlp);
/* add free inodes to unused/free list */
- for (rip = &inode[0]; rip < &inode[NR_INODES]; ++rip) {
+ for (rip = &inode[0]; rip < &inode[PFS_NR_INODES]; ++rip) {
rip->i_num = NO_ENTRY;
TAILQ_INSERT_HEAD(&unused_inodes, rip, i_unused);
}
bit_t b;
- if (rip->i_num <= (ino_t) 0 || rip->i_num >= (ino_t) NR_INODES) return;
+ if (rip->i_num <= (ino_t) 0 || rip->i_num >= (ino_t) PFS_NR_INODES) return;
b = (bit_t) rip->i_num;
free_bit(b);
}
TAILQ_ENTRY(inode) i_unused; /* free and unused list */
-} inode[NR_INODES];
+} inode[PFS_NR_INODES];
/* list of unused/free inodes */
EXTERN TAILQ_HEAD(unused_inodes_t, inode) unused_inodes;
busy = 0; /* Server is not 'busy' (i.e., inodes in use). */
/* Init inode table */
- for (i = 0; i < NR_INODES; ++i) {
+ for (i = 0; i < PFS_NR_INODES; ++i) {
inode[i].i_count = 0;
}
bit_t b;
unsigned int i, bcount;
- bcount = FS_BITMAP_CHUNKS(NR_INODES); /* Inode map has this many chunks. */
+ bcount = FS_BITMAP_CHUNKS(PFS_NR_INODES); /* Inode map has this many chunks. */
wlim = &inodemap[bcount]; /* Point to last chunk in inodemap. */
for (wptr = &inodemap[0]; wptr < wlim; wptr++) {
b = (bit_t) ((wptr - &inodemap[0]) * FS_BITCHUNK_BITS + i);
/* Don't allocate bits beyond end of map. */
- if (b >= NR_INODES) break;
+ if (b >= PFS_NR_INODES) break;
/* Allocate and return bit number. */
*wptr |= 1 << i;
#define __VFS_CONST_H__
/* Tables sizes */
-#define NR_FILPS 512 /* # slots in filp table */
+#define NR_FILPS 1024 /* # slots in filp table */
#define NR_LOCKS 8 /* # slots in the file locking table */
#define NR_MNTS 16 /* # slots in mount table */
-#define NR_VNODES 512 /* # slots in vnode table */
+#define NR_VNODES 1024 /* # slots in vnode table */
#define NR_WTHREADS 8 /* # slots in worker thread table */
#define NR_NONEDEVS NR_MNTS /* # slots in nonedev bitmap */
static mthread_attr_t tattr;
#ifdef MKCOVERAGE
-# define TH_STACKSIZE (10 * 1024)
+# define TH_STACKSIZE (40 * 1024)
#else
-# define TH_STACKSIZE (7 * 1024)
+# define TH_STACKSIZE (28 * 1024)
#endif
#define ASSERTW(w) assert((w) == &sys_worker || (w) == &dl_worker || \