Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 4 of 4) sorted by relevance

/lib/bcache/
A Dbcache.c49 struct bcache *cache; in bcache_create() local
53 cache->dev = dev; in bcache_create()
56 memset(&cache->stats, 0, sizeof(cache->stats)); in bcache_create()
68 list_add_head(&cache->free_list, &cache->blocks[i].node); in bcache_create()
71 return (bcache_t)cache; in bcache_create()
84 cache->stats.writes++; in flush_block()
104 free(cache); in bcache_destroy()
128 cache->stats.misses++; in find_block()
183 … err = bio_read(cache->dev, block->ptr, (off_t)blocknum * cache->block_size, cache->block_size); in find_or_fill_block()
311 finds = cache->stats.hits + cache->stats.misses; in bcache_dump()
[all …]
/lib/fs/ext2/
A Dext2.c168 ext2->cache = bcache_create(ext2->dev, EXT2_BLOCK_SIZE(ext2->sb), 4); in ext2_mount()
192 bcache_destroy(ext2->cache); in ext2_unmount()
226 err = bcache_get_block(ext2->cache, &cache_ptr, bnum); in ext2_load_inode()
234 bcache_put_block(ext2->cache, bnum); in ext2_load_inode()
A Dio.c18 return bcache_read_block(ext2->cache, buf, bnum); in ext2_read_block()
22 return bcache_get_block(ext2->cache, ptr, bnum); in ext2_get_block()
26 return bcache_put_block(ext2->cache, bnum); in ext2_put_block()
A Dext2_priv.h21 bcache_t cache; member

Completed in 10 milliseconds