Lines Matching refs:reserve
304 /* Prios/gens are actually the most important reserve */
389 long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait)
402 fifo_pop(&ca->free[reserve], r))
406 trace_bcache_alloc_fail(ca, reserve);
418 !fifo_pop(&ca->free[reserve], r));
425 trace_bcache_alloc(ca, reserve);
448 if (reserve <= RESERVE_PRIO) {
485 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
500 b = bch_bucket_alloc(ca, reserve, wait);
513 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
519 ret = __bch_bucket_alloc_set(c, reserve, k, wait);