Lines Matching full:cache
22 char *cache; member
61 const char *src = node->cache + (start - node->start) * blksz; in blkcache_read()
82 /* don't cache big stuff */ in blkcache_fill()
98 free(node->cache); in blkcache_fill()
99 node->cache = 0; in blkcache_fill()
105 node->cache = 0; in blkcache_fill()
108 if (!node->cache) { in blkcache_fill()
109 node->cache = malloc(bytes); in blkcache_fill()
110 if (!node->cache) { in blkcache_fill()
124 memcpy(node->cache, buffer, bytes); in blkcache_fill()
139 free(node->cache); in blkcache_invalidate()
151 /* invalidate cache */ in blkcache_configure()
155 free(node->cache); in blkcache_configure()