Searched refs:gc_stats (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/md/bcache/ |
D | writeback.c | 23 c->gc_stats.in_use < BCH_AUTO_GC_DIRTY_THRESHOLD) in update_gc_after_writeback() 106 c->gc_stats.in_use > BCH_WRITEBACK_FRAGMENT_THRESHOLD_LOW && dirty > 0) { in __update_writeback_rate() 112 if (c->gc_stats.in_use <= BCH_WRITEBACK_FRAGMENT_THRESHOLD_MID) { in __update_writeback_rate() 114 (c->gc_stats.in_use - BCH_WRITEBACK_FRAGMENT_THRESHOLD_LOW); in __update_writeback_rate() 115 } else if (c->gc_stats.in_use <= BCH_WRITEBACK_FRAGMENT_THRESHOLD_HIGH) { in __update_writeback_rate() 117 (c->gc_stats.in_use - BCH_WRITEBACK_FRAGMENT_THRESHOLD_MID); in __update_writeback_rate() 120 (c->gc_stats.in_use - BCH_WRITEBACK_FRAGMENT_THRESHOLD_HIGH); in __update_writeback_rate()
|
D | sysfs.c | 716 return div64_u64(c->gc_stats.key_bytes * 100, in bch_btree_used() 717 (c->gc_stats.nodes ?: 1) * btree_bytes(c)); in bch_btree_used() 722 return c->gc_stats.nkeys in bch_average_key_size() 723 ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) in bch_average_key_size() 740 sysfs_print(cache_available_percent, 100 - c->gc_stats.in_use); in SHOW() 748 sysfs_print(btree_nodes, c->gc_stats.nodes); in SHOW() 853 memset(&c->gc_stats, 0, sizeof(struct gc_stat)); in STORE()
|
D | writeback.h | 105 unsigned int in_use = dc->disk.c->gc_stats.in_use; in should_writeback()
|
D | alloc.c | 490 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in bch_bucket_alloc() 503 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in __bch_bucket_free()
|
D | btree.c | 1604 min_nodes = c->gc_stats.nodes / MAX_GC_TIMES; in btree_gc_min_nodes() 1870 memcpy(&c->gc_stats, &stats, sizeof(struct gc_stat)); in bch_btree_gc() 1945 b->c->gc_stats.nodes++; in bch_btree_check_recurse() 2019 c->gc_stats.nodes++; in bch_btree_check_thread()
|
D | bcache.h | 633 struct gc_stat gc_stats; member
|
D | request.c | 375 if (c->gc_stats.in_use > CUTOFF_CACHE_ADD) { in check_should_bypass()
|