Searched refs:gc_stats (Results 1 – 5 of 5) sorted by relevance
511 return div64_u64(c->gc_stats.key_bytes * 100, in bch_btree_used()512 (c->gc_stats.nodes ?: 1) * btree_bytes(c)); in bch_btree_used()517 return c->gc_stats.nkeys in bch_average_key_size()518 ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) in bch_average_key_size()535 sysfs_print(cache_available_percent, 100 - c->gc_stats.in_use); in SHOW()543 sysfs_print(btree_nodes, c->gc_stats.nodes); in SHOW()618 memset(&c->gc_stats, 0, sizeof(struct gc_stat)); in STORE()
64 unsigned in_use = dc->disk.c->gc_stats.in_use; in should_writeback()
583 struct gc_stat gc_stats; member
378 c->gc_stats.in_use > CUTOFF_CACHE_ADD || in check_should_bypass()810 s->iop.c->gc_stats.in_use < CUTOFF_CACHE_READA) in cached_dev_cache_miss()
1771 memcpy(&c->gc_stats, &stats, sizeof(struct gc_stat)); in bch_btree_gc()