Home
last modified time | relevance | path

Searched refs:gc_stats (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/bcache/
Dsysfs.c699 return div64_u64(c->gc_stats.key_bytes * 100, in bch_btree_used()
700 (c->gc_stats.nodes ?: 1) * btree_bytes(c)); in bch_btree_used()
705 return c->gc_stats.nkeys in bch_average_key_size()
706 ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) in bch_average_key_size()
723 sysfs_print(cache_available_percent, 100 - c->gc_stats.in_use); in SHOW()
731 sysfs_print(btree_nodes, c->gc_stats.nodes); in SHOW()
836 memset(&c->gc_stats, 0, sizeof(struct gc_stat)); in STORE()
Dwriteback.h101 unsigned int in_use = dc->disk.c->gc_stats.in_use; in should_writeback()
Dalloc.c463 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in bch_bucket_alloc()
476 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in __bch_bucket_free()
Dbcache.h623 struct gc_stat gc_stats; member
Dbtree.c1563 min_nodes = c->gc_stats.nodes / MAX_GC_TIMES; in btree_gc_min_nodes()
1823 memcpy(&c->gc_stats, &stats, sizeof(struct gc_stat)); in bch_btree_gc()
1896 b->c->gc_stats.nodes++; in bch_btree_check_recurse()
1968 c->gc_stats.nodes++; in bch_btree_check_thread()
Drequest.c372 c->gc_stats.in_use > CUTOFF_CACHE_ADD || in check_should_bypass()
895 s->iop.c->gc_stats.in_use < CUTOFF_CACHE_READA) in cached_dev_cache_miss()
Dwriteback.c23 c->gc_stats.in_use < BCH_AUTO_GC_DIRTY_THRESHOLD) in update_gc_after_writeback()