Lines Matching defs:reserve
300 /* Prios/gens are actually the most important reserve */
376 long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait)
389 fifo_pop(&ca->free[reserve], r))
393 trace_bcache_alloc_fail(ca, reserve);
409 !fifo_pop(&ca->free[reserve], r));
416 trace_bcache_alloc(ca, reserve);
439 if (reserve <= RESERVE_PRIO) {
476 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
491 b = bch_bucket_alloc(ca, reserve, wait);
504 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
510 ret = __bch_bucket_alloc_set(c, reserve, k, wait);