Searched refs:prio_buckets (Results 1 – 5 of 5) sorted by relevance
601 if (prio_buckets(ca) > avail) in bch_prio_write()611 atomic_long_add(ca->sb.bucket_size * prio_buckets(ca), in bch_prio_write()614 for (i = prio_buckets(ca) - 1; i >= 0; --i) { in bch_prio_write()627 p->next_bucket = ca->prio_buckets[i + 1]; in bch_prio_write()638 ca->prio_buckets[i] = bucket; in bch_prio_write()653 for (i = 0; i < prio_buckets(ca); i++) { in bch_prio_write()658 ca->prio_last_buckets[i] = ca->prio_buckets[i]; in bch_prio_write()675 ca->prio_buckets[bucket_nr] = bucket; in prio_read()2180 kfree(ca->prio_buckets); in bch_cache_release()2235 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()
429 uint64_t *prio_buckets; member785 #define prio_buckets(ca) \ macro
1765 for (k = ca->prio_buckets; in bch_btree_gc_finish()1766 k < ca->prio_buckets + prio_buckets(ca) * 2; k++) in bch_btree_gc_finish()
764 w->data->prio_bucket[ca->sb.nr_this_dev] = ca->prio_buckets[0]; in journal_write_unlocked()