Lines Matching defs:cache_set
510 struct cache_set { struct
511 struct closure cl;
513 struct list_head list;
514 struct kobject kobj;
515 struct kobject internal;
516 struct dentry *debug;
517 struct cache_accounting accounting;
519 unsigned long flags;
520 atomic_t idle_counter;
521 atomic_t at_max_writeback_rate;
523 struct cache *cache;
525 struct bcache_device **devices;
526 unsigned int devices_max_used;
527 atomic_t attached_dev_nr;
528 struct list_head cached_devs;
529 uint64_t cached_dev_sectors;
530 atomic_long_t flash_dev_dirty_sectors;
531 struct closure caching;
533 struct closure sb_write;
534 struct semaphore sb_write_mutex;
536 mempool_t search;
537 mempool_t bio_meta;
538 struct bio_set bio_split;
541 struct shrinker shrink;
544 struct mutex bucket_lock;
547 unsigned short bucket_bits;
550 unsigned short block_bits;
556 unsigned int btree_pages;
574 struct list_head btree_cache;
575 struct list_head btree_cache_freeable;
576 struct list_head btree_cache_freed;
579 unsigned int btree_cache_used;
587 wait_queue_head_t btree_cache_wait;
588 struct task_struct *btree_cache_alloc_lock;
589 spinlock_t btree_cannibalize_lock;
601 atomic_t prio_blocked;
602 wait_queue_head_t bucket_wait;
608 atomic_t rescale;
612 atomic_t search_inflight;
619 uint16_t min_prio;
625 uint8_t need_gc;
626 struct gc_stat gc_stats;
627 size_t nbuckets;
628 size_t avail_nbuckets;
630 struct task_struct *gc_thread;
632 struct bkey gc_done;
646 uint8_t gc_after_writeback;
652 int gc_mark_valid;
655 atomic_t sectors_to_gc;
656 wait_queue_head_t gc_wait;
658 struct keybuf moving_gc_keys;
682 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
687 mempool_t fill_iter;
689 struct bset_sort_state sort;
692 struct list_head data_buckets;
693 spinlock_t data_bucket_lock;
695 struct journal journal;
698 unsigned int congested_last_us;
699 atomic_t congested;
702 unsigned int congested_read_threshold_us;
703 unsigned int congested_write_threshold_us;
705 struct time_stats btree_gc_time;
706 struct time_stats btree_split_time;
707 struct time_stats btree_read_time;
709 atomic_long_t cache_read_races;
710 atomic_long_t writeback_keys_done;
711 atomic_long_t writeback_keys_failed;
713 atomic_long_t reclaim;
714 atomic_long_t reclaimed_journal_buckets;
715 atomic_long_t flush_write;
717 enum {
720 } on_error;
722 unsigned int error_limit;
723 unsigned int error_decay;
725 unsigned short journal_delay_ms;
726 bool expensive_debug_checks;
727 unsigned int verify:1;
728 unsigned int key_merging_disabled:1;
729 unsigned int gc_always_rewrite:1;
730 unsigned int shrinker_disabled:1;
731 unsigned int copy_gc_enabled:1;
732 unsigned int idle_max_writeback_rate_enabled:1;
735 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];