Searched refs:prio_buckets (Results 1 – 5 of 5) sorted by relevance
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()2210 kfree(ca->prio_buckets); in bch_cache_release()2265 if (!init_fifo_exact(&ca->free[RESERVE_PRIO], prio_buckets(ca), in cache_alloc()[all …]
435 for (iter = 0; iter < prio_buckets(ca) * 2; iter++) in bch_bucket_alloc()436 BUG_ON(ca->prio_buckets[iter] == (uint64_t) r); in bch_bucket_alloc()
438 uint64_t *prio_buckets; member792 #define prio_buckets(ca) \ macro
1800 for (k = ca->prio_buckets; in bch_btree_gc_finish()1801 k < ca->prio_buckets + prio_buckets(ca) * 2; k++) in bch_btree_gc_finish()
782 w->data->prio_bucket[ca->sb.nr_this_dev] = ca->prio_buckets[0]; in journal_write_unlocked()