Lines Matching defs:cache_set
514 struct cache_set { struct
515 struct closure cl;
517 struct list_head list;
518 struct kobject kobj;
519 struct kobject internal;
520 struct dentry *debug;
521 struct cache_accounting accounting;
523 unsigned long flags;
524 atomic_t idle_counter;
525 atomic_t at_max_writeback_rate;
527 struct cache *cache;
529 struct bcache_device **devices;
530 unsigned int devices_max_used;
531 atomic_t attached_dev_nr;
532 struct list_head cached_devs;
533 uint64_t cached_dev_sectors;
534 atomic_long_t flash_dev_dirty_sectors;
535 struct closure caching;
537 struct closure sb_write;
538 struct semaphore sb_write_mutex;
540 mempool_t search;
541 mempool_t bio_meta;
542 struct bio_set bio_split;
545 struct shrinker shrink;
548 struct mutex bucket_lock;
551 unsigned short bucket_bits;
554 unsigned short block_bits;
560 unsigned int btree_pages;
578 struct list_head btree_cache;
579 struct list_head btree_cache_freeable;
580 struct list_head btree_cache_freed;
583 unsigned int btree_cache_used;
591 wait_queue_head_t btree_cache_wait;
592 struct task_struct *btree_cache_alloc_lock;
593 spinlock_t btree_cannibalize_lock;
605 atomic_t prio_blocked;
606 wait_queue_head_t bucket_wait;
612 atomic_t rescale;
616 atomic_t search_inflight;
623 uint16_t min_prio;
629 uint8_t need_gc;
630 struct gc_stat gc_stats;
631 size_t nbuckets;
632 size_t avail_nbuckets;
634 struct task_struct *gc_thread;
636 struct bkey gc_done;
650 uint8_t gc_after_writeback;
656 int gc_mark_valid;
659 atomic_t sectors_to_gc;
660 wait_queue_head_t gc_wait;
662 struct keybuf moving_gc_keys;
686 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
691 mempool_t fill_iter;
693 struct bset_sort_state sort;
696 struct list_head data_buckets;
697 spinlock_t data_bucket_lock;
699 struct journal journal;
702 unsigned int congested_last_us;
703 atomic_t congested;
706 unsigned int congested_read_threshold_us;
707 unsigned int congested_write_threshold_us;
709 struct time_stats btree_gc_time;
710 struct time_stats btree_split_time;
711 struct time_stats btree_read_time;
713 atomic_long_t cache_read_races;
714 atomic_long_t writeback_keys_done;
715 atomic_long_t writeback_keys_failed;
717 atomic_long_t reclaim;
718 atomic_long_t reclaimed_journal_buckets;
719 atomic_long_t flush_write;
721 enum {
724 } on_error;
726 unsigned int error_limit;
727 unsigned int error_decay;
729 unsigned short journal_delay_ms;
730 bool expensive_debug_checks;
731 unsigned int verify:1;
732 unsigned int key_merging_disabled:1;
733 unsigned int gc_always_rewrite:1;
734 unsigned int shrinker_disabled:1;
735 unsigned int copy_gc_enabled:1;
736 unsigned int idle_max_writeback_rate_enabled:1;
739 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];