Lines Matching full:reserve
334 /* Prios/gens are actually the most important reserve */ in bch_allocator_push()
419 long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait) in bch_bucket_alloc() argument
432 fifo_pop(&ca->free[reserve], r)) in bch_bucket_alloc()
436 trace_bcache_alloc_fail(ca, reserve); in bch_bucket_alloc()
448 !fifo_pop(&ca->free[reserve], r)); in bch_bucket_alloc()
455 trace_bcache_alloc(ca, reserve); in bch_bucket_alloc()
478 if (reserve <= RESERVE_PRIO) { in bch_bucket_alloc()
515 int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve, in __bch_bucket_alloc_set() argument
530 b = bch_bucket_alloc(ca, reserve, wait); in __bch_bucket_alloc_set()
543 int bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve, in bch_bucket_alloc_set() argument
549 ret = __bch_bucket_alloc_set(c, reserve, k, wait); in bch_bucket_alloc_set()