Lines Matching defs:cache
33 * Simple hashed block cache
59 * bcache per device node. cache is allocated on device first open and freed
75 static u_int bcache_units; /* number of devices with cache */
95 * Initialise the cache for (nblks) of (bsize).
106 * add number of devices to bcache. we have to divide cache space
158 /* Flush the cache */
169 bcache_free(void *cache)
171 struct bcache *bc = cache;
182 * cache with the new values.
205 * be satisfied by the cache, use the supplied strategy routine to do
206 * device I/O and then use the I/O results to populate the cache.
233 /* Satisfy any cache hits up front, break on first miss */
246 if (complete) { /* whole set was in cache, return it */
322 * Requests larger than 1/2 cache size will be bypassed and go
340 /* bypass large requests, or when the cache is inactive */
420 * Insert a block into the cache.
435 * Invalidate a block from the cache.
451 COMMAND_SET(bcachestat, "bcachestat", "get disk block cache stats", command_bcache);
462 printf("cache blocksz: %d\n", bcache_blksize);
463 printf("cache readahead: %d\n", bcache_rablks);
464 printf("unit cache blocks: %d\n", bcache_unit_nblks);