Lines Matching defs:cache_set
508 struct cache_set { struct
509 struct closure cl;
511 struct list_head list;
512 struct kobject kobj;
513 struct kobject internal;
514 struct dentry *debug;
515 struct cache_accounting accounting;
517 unsigned long flags;
518 atomic_t idle_counter;
519 atomic_t at_max_writeback_rate;
521 struct cache *cache;
523 struct bcache_device **devices;
524 unsigned int devices_max_used;
525 atomic_t attached_dev_nr;
526 struct list_head cached_devs;
527 uint64_t cached_dev_sectors;
528 atomic_long_t flash_dev_dirty_sectors;
529 struct closure caching;
531 struct closure sb_write;
532 struct semaphore sb_write_mutex;
534 mempool_t search;
535 mempool_t bio_meta;
536 struct bio_set bio_split;
539 struct shrinker shrink;
542 struct mutex bucket_lock;
545 unsigned short bucket_bits;
548 unsigned short block_bits;
554 unsigned int btree_pages;
572 struct list_head btree_cache;
573 struct list_head btree_cache_freeable;
574 struct list_head btree_cache_freed;
577 unsigned int btree_cache_used;
585 wait_queue_head_t btree_cache_wait;
586 struct task_struct *btree_cache_alloc_lock;
587 spinlock_t btree_cannibalize_lock;
599 atomic_t prio_blocked;
600 wait_queue_head_t bucket_wait;
606 atomic_t rescale;
610 atomic_t search_inflight;
617 uint16_t min_prio;
623 uint8_t need_gc;
624 struct gc_stat gc_stats;
625 size_t nbuckets;
626 size_t avail_nbuckets;
628 struct task_struct *gc_thread;
630 struct bkey gc_done;
644 uint8_t gc_after_writeback;
650 int gc_mark_valid;
653 atomic_t sectors_to_gc;
654 wait_queue_head_t gc_wait;
656 struct keybuf moving_gc_keys;
680 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
685 mempool_t fill_iter;
687 struct bset_sort_state sort;
690 struct list_head data_buckets;
691 spinlock_t data_bucket_lock;
693 struct journal journal;
696 unsigned int congested_last_us;
697 atomic_t congested;
700 unsigned int congested_read_threshold_us;
701 unsigned int congested_write_threshold_us;
703 struct time_stats btree_gc_time;
704 struct time_stats btree_split_time;
705 struct time_stats btree_read_time;
707 atomic_long_t cache_read_races;
708 atomic_long_t writeback_keys_done;
709 atomic_long_t writeback_keys_failed;
711 atomic_long_t reclaim;
712 atomic_long_t reclaimed_journal_buckets;
713 atomic_long_t flush_write;
715 enum {
718 } on_error;
720 unsigned int error_limit;
721 unsigned int error_decay;
723 unsigned short journal_delay_ms;
724 bool expensive_debug_checks;
725 unsigned int verify:1;
726 unsigned int key_merging_disabled:1;
727 unsigned int gc_always_rewrite:1;
728 unsigned int shrinker_disabled:1;
729 unsigned int copy_gc_enabled:1;
730 unsigned int idle_max_writeback_rate_enabled:1;
733 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];