Lines Matching refs:prio_buckets
629 if (prio_buckets(ca) > avail) in bch_prio_write()
639 atomic_long_add(ca->sb.bucket_size * prio_buckets(ca), in bch_prio_write()
642 for (i = prio_buckets(ca) - 1; i >= 0; --i) { in bch_prio_write()
655 p->next_bucket = ca->prio_buckets[i + 1]; in bch_prio_write()
666 ca->prio_buckets[i] = bucket; in bch_prio_write()
681 for (i = 0; i < prio_buckets(ca); i++) { in bch_prio_write()
686 ca->prio_last_buckets[i] = ca->prio_buckets[i]; in bch_prio_write()
703 ca->prio_buckets[bucket_nr] = bucket; in prio_read()
2203 kfree(ca->prio_buckets); in bch_cache_release()
2258 if (!init_fifo_exact(&ca->free[RESERVE_PRIO], prio_buckets(ca), in cache_alloc()
2291 ca->prio_buckets = kzalloc(array3_size(sizeof(uint64_t), in cache_alloc()
2292 prio_buckets(ca), 2), in cache_alloc()
2294 if (!ca->prio_buckets) { in cache_alloc()
2305 ca->prio_last_buckets = ca->prio_buckets + prio_buckets(ca); in cache_alloc()
2312 kfree(ca->prio_buckets); in cache_alloc()