Lines Matching refs:bcache
59 * bcache per device node. cache is allocated on device first open and freed
64 struct bcache {
90 static void bcache_invalidate(struct bcache *bc, daddr_t blkno);
91 static void bcache_insert(struct bcache *bc, daddr_t blkno);
92 static void bcache_free_instance(struct bcache *bc);
106 * add number of devices to bcache. we have to divide cache space
123 struct bcache *bc = malloc(sizeof (struct bcache));
135 * the bcache block count must be power of 2 for hash function
171 struct bcache *bc = cache;
189 struct bcache *bc = dd->dv_cache;
213 struct bcache *bc = dd->dv_cache;
257 * We have space at least for nblk - i before bcache wraps.
271 /* invalidate bcache */
279 * disk end, as bcache has no information about disk size.
282 * in either case we should return the data in bcache and only
330 struct bcache *bc = dd->dv_cache;
405 * Free allocated bcache instance
408 bcache_free_instance(struct bcache *bc)
423 bcache_insert(struct bcache *bc, daddr_t blkno)
438 bcache_invalidate(struct bcache *bc, daddr_t blkno)