Lines Matching refs:bucket

76 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b)  in bch_inc_gen()
89 struct bucket *b; in bch_rescale_priorities()
125 static inline bool can_inc_bucket_gen(struct bucket *b) in can_inc_bucket_gen()
130 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket()
137 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket()
151 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket()
167 static inline unsigned int new_bucket_prio(struct cache *ca, struct bucket *b) in new_bucket_prio()
176 struct bucket **lhs = (struct bucket **)l; in new_bucket_max_cmp()
177 struct bucket **rhs = (struct bucket **)r; in new_bucket_max_cmp()
185 struct bucket **lhs = (struct bucket **)l; in new_bucket_min_cmp()
186 struct bucket **rhs = (struct bucket **)r; in new_bucket_min_cmp()
194 struct bucket **lhs = l, **rhs = r; in new_bucket_swap()
201 struct bucket *b; in invalidate_buckets_lru()
246 struct bucket *b; in invalidate_buckets_fifo()
269 struct bucket *b; in invalidate_buckets_random()
330 static int bch_allocator_push(struct cache *ca, long bucket) in bch_allocator_push() argument
335 if (fifo_push(&ca->free[RESERVE_PRIO], bucket)) in bch_allocator_push()
339 if (fifo_push(&ca->free[i], bucket)) in bch_allocator_push()
358 long bucket; in bch_allocator_thread() local
360 if (!fifo_pop(&ca->free_inc, bucket)) in bch_allocator_thread()
366 bucket_to_sector(ca->set, bucket), in bch_allocator_thread()
371 allocator_wait(ca, bch_allocator_push(ca, bucket)); in bch_allocator_thread()
422 struct bucket *b; in bch_bucket_alloc()
496 void __bch_bucket_free(struct cache *ca, struct bucket *b) in __bch_bucket_free()