Lines Matching refs:bucket
73 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen()
86 struct bucket *b; in bch_rescale_priorities()
121 static inline bool can_inc_bucket_gen(struct bucket *b) in can_inc_bucket_gen()
126 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket()
133 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket()
147 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket()
175 struct bucket *b; in invalidate_buckets_lru()
212 struct bucket *b; in invalidate_buckets_fifo()
235 struct bucket *b; in invalidate_buckets_random()
296 static int bch_allocator_push(struct cache *ca, long bucket) in bch_allocator_push() argument
301 if (fifo_push(&ca->free[RESERVE_PRIO], bucket)) in bch_allocator_push()
305 if (fifo_push(&ca->free[i], bucket)) in bch_allocator_push()
323 long bucket; in bch_allocator_thread() local
325 if (!fifo_pop(&ca->free_inc, bucket)) in bch_allocator_thread()
328 allocator_wait(ca, bch_allocator_push(ca, bucket)); in bch_allocator_thread()
379 struct bucket *b; in bch_bucket_alloc()
457 void __bch_bucket_free(struct cache *ca, struct bucket *b) in __bch_bucket_free()