Lines Matching defs:cache_set

502 struct cache_set {  struct
503 struct closure cl;
505 struct list_head list;
506 struct kobject kobj;
507 struct kobject internal;
508 struct dentry *debug;
509 struct cache_accounting accounting;
511 unsigned long flags;
512 atomic_t idle_counter;
513 atomic_t at_max_writeback_rate;
515 struct cache_sb sb;
517 struct cache *cache[MAX_CACHES_PER_SET];
518 struct cache *cache_by_alloc[MAX_CACHES_PER_SET];
519 int caches_loaded;
521 struct bcache_device **devices;
522 unsigned int devices_max_used;
523 atomic_t attached_dev_nr;
524 struct list_head cached_devs;
525 uint64_t cached_dev_sectors;
526 atomic_long_t flash_dev_dirty_sectors;
527 struct closure caching;
529 struct closure sb_write;
530 struct semaphore sb_write_mutex;
532 mempool_t search;
533 mempool_t bio_meta;
534 struct bio_set bio_split;
537 struct shrinker shrink;
540 struct mutex bucket_lock;
543 unsigned short bucket_bits;
546 unsigned short block_bits;
552 unsigned int btree_pages;
570 struct list_head btree_cache;
571 struct list_head btree_cache_freeable;
572 struct list_head btree_cache_freed;
575 unsigned int btree_cache_used;
583 wait_queue_head_t btree_cache_wait;
584 struct task_struct *btree_cache_alloc_lock;
596 atomic_t prio_blocked;
597 wait_queue_head_t bucket_wait;
603 atomic_t rescale;
607 atomic_t search_inflight;
614 uint16_t min_prio;
620 uint8_t need_gc;
621 struct gc_stat gc_stats;
622 size_t nbuckets;
623 size_t avail_nbuckets;
625 struct task_struct *gc_thread;
627 struct bkey gc_done;
641 uint8_t gc_after_writeback;
647 int gc_mark_valid;
650 atomic_t sectors_to_gc;
651 wait_queue_head_t gc_wait;
676 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
681 mempool_t fill_iter;
683 struct bset_sort_state sort;
686 struct list_head data_buckets;
687 spinlock_t data_bucket_lock;
689 struct journal journal;
692 unsigned int congested_last_us;
693 atomic_t congested;
696 unsigned int congested_read_threshold_us;
697 unsigned int congested_write_threshold_us;
699 struct time_stats btree_gc_time;
700 struct time_stats btree_split_time;
701 struct time_stats btree_read_time;
703 atomic_long_t cache_read_races;
704 atomic_long_t writeback_keys_done;
705 atomic_long_t writeback_keys_failed;
707 atomic_long_t reclaim;
708 atomic_long_t reclaimed_journal_buckets;
709 atomic_long_t flush_write;
711 enum {
714 } on_error;
716 unsigned int error_limit;
717 unsigned int error_decay;
719 unsigned short journal_delay_ms;
720 bool expensive_debug_checks;
721 unsigned int verify:1;
722 unsigned int key_merging_disabled:1;
723 unsigned int gc_always_rewrite:1;
724 unsigned int shrinker_disabled:1;
725 unsigned int copy_gc_enabled:1;
728 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];