Lines Matching refs:_stats
26 static struct block_cache_stats _stats = { variable
64 ++_stats.hits; in blkcache_read()
70 ++_stats.misses; in blkcache_read()
82 if (blkcnt > _stats.max_blocks_per_entry) in blkcache_fill()
85 if (_stats.max_entries == 0) in blkcache_fill()
89 if (_stats.max_entries <= _stats.entries) { in blkcache_fill()
93 _stats.entries--; in blkcache_fill()
125 _stats.entries++; in blkcache_fill()
140 --_stats.entries; in blkcache_invalidate()
148 if ((blocks != _stats.max_blocks_per_entry) || in blkcache_configure()
149 (entries != _stats.max_entries)) { in blkcache_configure()
157 _stats.entries = 0; in blkcache_configure()
160 _stats.max_blocks_per_entry = blocks; in blkcache_configure()
161 _stats.max_entries = entries; in blkcache_configure()
163 _stats.hits = 0; in blkcache_configure()
164 _stats.misses = 0; in blkcache_configure()
169 memcpy(stats, &_stats, sizeof(*stats)); in blkcache_stats()
170 _stats.hits = 0; in blkcache_stats()
171 _stats.misses = 0; in blkcache_stats()