Lines Matching defs:reserve
306 /* Prios/gens are actually the most important reserve */
392 long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait)
405 fifo_pop(&ca->free[reserve], r))
409 trace_bcache_alloc_fail(ca, reserve);
421 !fifo_pop(&ca->free[reserve], r));
428 trace_bcache_alloc(ca, reserve);
451 if (reserve <= RESERVE_PRIO) {
489 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
504 b = bch_bucket_alloc(ca, reserve, wait);
521 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
527 ret = __bch_bucket_alloc_set(c, reserve, k, wait);