Home
last modified time | relevance | path

Searched refs:nbuckets (Results 1 – 9 of 9) sorted by relevance

/drivers/md/bcache/
Dalloc.c90 unsigned long next = c->nbuckets * c->cache->sb.bucket_size / 1024; in bch_rescale_priorities()
223 ca->fifo_last_bucket >= ca->sb.nbuckets) in invalidate_buckets_fifo()
231 if (++checked >= ca->sb.nbuckets) { in invalidate_buckets_fifo()
249 n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket); in invalidate_buckets_random()
257 if (++checked >= ca->sb.nbuckets / 2) { in invalidate_buckets_random()
474 if (ca->set->avail_nbuckets < ca->set->nbuckets) { in __bch_bucket_free()
Dsysfs.c68 read_attribute(nbuckets);
1043 sysfs_print(nbuckets, ca->sb.nbuckets); in SHOW()
1062 size_t n = ca->sb.nbuckets, i; in SHOW()
1070 ca->sb.nbuckets)); in SHOW()
1122 unused * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1123 available * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1124 dirty * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1125 meta * 100 / (size_t) ca->sb.nbuckets, sum, in SHOW()
Dsuper.c98 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common()
109 if (sb->nbuckets > LONG_MAX) in read_super_common()
113 if (sb->nbuckets < 1 << 7) in read_super_common()
134 sb->bucket_size * sb->nbuckets) in read_super_common()
153 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common()
649 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write()
700 b < ca->buckets + ca->sb.nbuckets; in prio_read()
1983 c->nbuckets = ca->sb.nbuckets; in run_cache_set()
2071 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, in run_cache_set()
2253 free = roundup_pow_of_two(ca->sb.nbuckets) >> 10; in cache_alloc()
[all …]
Dbcache_ondisk.h189 __le64 nbuckets; /* device size */ member
249 __u64 nbuckets; /* device size */ member
Dbcache.h631 size_t nbuckets; member
793 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca))
890 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
Dextents.c59 bucket >= ca->sb.nbuckets) in __ptr_invalid()
82 if (bucket >= ca->sb.nbuckets) in bch_ptr_status()
139 if (n >= b->c->cache->sb.first_bucket && n < b->c->cache->sb.nbuckets) in bch_bkey_dump()
Dbtree.h197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors()
Dwriteback.c38 uint64_t cache_sectors = c->nbuckets * c->cache->sb.bucket_size - in __calc_target_rate()
103 int64_t dirty_buckets = c->nbuckets - c->avail_nbuckets; in __update_writeback_rate()
Dbtree.c1278 stats->in_use = (c->nbuckets - c->avail_nbuckets) * 100 / c->nbuckets; in bch_update_bucket_in_use()