Lines Matching defs:cache_set
517 struct cache_set { struct
518 struct closure cl;
520 struct list_head list;
521 struct kobject kobj;
522 struct kobject internal;
523 struct dentry *debug;
524 struct cache_accounting accounting;
526 unsigned long flags;
527 atomic_t idle_counter;
528 atomic_t at_max_writeback_rate;
530 struct cache *cache;
532 struct bcache_device **devices;
533 unsigned int devices_max_used;
534 atomic_t attached_dev_nr;
535 struct list_head cached_devs;
536 uint64_t cached_dev_sectors;
537 atomic_long_t flash_dev_dirty_sectors;
538 struct closure caching;
540 struct closure sb_write;
541 struct semaphore sb_write_mutex;
543 mempool_t search;
544 mempool_t bio_meta;
545 struct bio_set bio_split;
548 struct shrinker *shrink;
551 struct mutex bucket_lock;
554 unsigned short bucket_bits;
557 unsigned short block_bits;
563 unsigned int btree_pages;
581 struct list_head btree_cache;
582 struct list_head btree_cache_freeable;
583 struct list_head btree_cache_freed;
586 unsigned int btree_cache_used;
594 wait_queue_head_t btree_cache_wait;
595 struct task_struct *btree_cache_alloc_lock;
596 spinlock_t btree_cannibalize_lock;
608 atomic_t prio_blocked;
609 wait_queue_head_t bucket_wait;
615 atomic_t rescale;
619 atomic_t search_inflight;
626 uint16_t min_prio;
632 uint8_t need_gc;
633 struct gc_stat gc_stats;
634 size_t nbuckets;
635 size_t avail_nbuckets;
637 struct task_struct *gc_thread;
639 struct bkey gc_done;
653 uint8_t gc_after_writeback;
659 int gc_mark_valid;
662 atomic_t sectors_to_gc;
663 wait_queue_head_t gc_wait;
665 struct keybuf moving_gc_keys;
689 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
694 mempool_t fill_iter;
696 struct bset_sort_state sort;
699 struct list_head data_buckets;
700 spinlock_t data_bucket_lock;
702 struct journal journal;
705 unsigned int congested_last_us;
706 atomic_t congested;
709 unsigned int congested_read_threshold_us;
710 unsigned int congested_write_threshold_us;
712 struct time_stats btree_gc_time;
713 struct time_stats btree_split_time;
714 struct time_stats btree_read_time;
716 atomic_long_t cache_read_races;
717 atomic_long_t writeback_keys_done;
718 atomic_long_t writeback_keys_failed;
720 atomic_long_t reclaim;
721 atomic_long_t reclaimed_journal_buckets;
722 atomic_long_t flush_write;
724 enum {
727 } on_error;
729 unsigned int error_limit;
730 unsigned int error_decay;
732 unsigned short journal_delay_ms;
733 bool expensive_debug_checks;
734 unsigned int verify:1;
735 unsigned int key_merging_disabled:1;
736 unsigned int gc_always_rewrite:1;
737 unsigned int shrinker_disabled:1;
738 unsigned int copy_gc_enabled:1;
739 unsigned int idle_max_writeback_rate_enabled:1;
742 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];