• Home
  • Raw
  • Download

Lines Matching refs:set

80 	ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b));  in bch_inc_gen()
81 WARN_ON_ONCE(ca->set->need_gc > BUCKET_GC_GEN_MAX); in bch_inc_gen()
132 BUG_ON(!ca->set->gc_mark_valid); in bch_can_invalidate_bucket()
142 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
171 unsigned int min_prio = (INITIAL_PRIO - ca->set->min_prio) / 8; \
173 (b->prio - ca->set->min_prio + min_prio) * GC_SECTORS_USED(b); \
208 wake_up_gc(ca->set); in invalidate_buckets_lru()
233 wake_up_gc(ca->set); in invalidate_buckets_fifo()
259 wake_up_gc(ca->set); in invalidate_buckets_random()
289 mutex_unlock(&(ca)->set->bucket_lock); \
291 test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags)) { \
297 mutex_lock(&(ca)->set->bucket_lock); \
321 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
336 mutex_unlock(&ca->set->bucket_lock); in bch_allocator_thread()
338 bucket_to_sector(ca->set, bucket), in bch_allocator_thread()
340 mutex_lock(&ca->set->bucket_lock); in bch_allocator_thread()
344 wake_up(&ca->set->btree_cache_wait); in bch_allocator_thread()
345 wake_up(&ca->set->bucket_wait); in bch_allocator_thread()
355 allocator_wait(ca, ca->set->gc_mark_valid && in bch_allocator_thread()
363 allocator_wait(ca, !atomic_read(&ca->set->prio_blocked)); in bch_allocator_thread()
381 wake_up_gc(ca->set); in bch_allocator_thread()
400 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags))) in bch_bucket_alloc()
414 prepare_to_wait(&ca->set->bucket_wait, &w, in bch_bucket_alloc()
417 mutex_unlock(&ca->set->bucket_lock); in bch_bucket_alloc()
419 mutex_lock(&ca->set->bucket_lock); in bch_bucket_alloc()
423 finish_wait(&ca->set->bucket_wait, &w); in bch_bucket_alloc()
430 if (expensive_debug_checks(ca->set)) { in bch_bucket_alloc()
461 if (ca->set->avail_nbuckets > 0) { in bch_bucket_alloc()
462 ca->set->avail_nbuckets--; in bch_bucket_alloc()
463 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in bch_bucket_alloc()
474 if (ca->set->avail_nbuckets < ca->set->nbuckets) { in __bch_bucket_free()
475 ca->set->avail_nbuckets++; in __bch_bucket_free()
476 bch_update_bucket_in_use(ca->set, &ca->set->gc_stats); in __bch_bucket_free()