Lines Matching full:blocksize
46 static int BlockSize; variable
57 if ((BlockSize = sblock->fs_bsize * BLKFACTOR) > MAXBSIZE) in cinit()
58 BlockSize = MAXBSIZE; in cinit()
59 NBlocks = cachesize / BlockSize; in cinit()
62 msg("Cache %d MB, blocksize = %d\n", in cinit()
63 NBlocks * BlockSize / (1024 * 1024), BlockSize); in cinit()
67 DataBase = mmap(NULL, NBlocks * BlockSize, in cinit()
70 base[i].b_Data = DataBase + i * BlockSize; in cinit()
104 mask = ~(off_t)(BlockSize - 1); in cread()
105 if (nbytes >= BlockSize || in cread()
115 hi = (offset / BlockSize) % HSize; in cread()
128 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread()
129 if (n != BlockSize) { in cread()