Searched refs:gc_stats (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/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 | 720 return div64_u64(c->gc_stats.key_bytes * 100, in bch_btree_used() 721 (c->gc_stats.nodes ?: 1) * btree_bytes(c)); in bch_btree_used() 726 return c->gc_stats.nkeys in bch_average_key_size() 727 ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) in bch_average_key_size() 744 sysfs_print(cache_available_percent, 100 - c->gc_stats.in_use); in SHOW() 752 sysfs_print(btree_nodes, c->gc_stats.nodes); in SHOW() 857 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 | 463 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()
|
D | bcache.h | 630 struct gc_stat gc_stats; member
|
D | btree.c | 1595 min_nodes = c->gc_stats.nodes / MAX_GC_TIMES; in btree_gc_min_nodes() 1855 memcpy(&c->gc_stats, &stats, sizeof(struct gc_stat)); in bch_btree_gc() 1928 b->c->gc_stats.nodes++; in bch_btree_check_recurse() 2000 c->gc_stats.nodes++; in bch_btree_check_thread()
|
D | request.c | 372 c->gc_stats.in_use > CUTOFF_CACHE_ADD || in check_should_bypass()
|