Lines Matching defs:cache_set

507 struct cache_set {  struct
508 struct closure cl;
510 struct list_head list;
511 struct kobject kobj;
512 struct kobject internal;
513 struct dentry *debug;
514 struct cache_accounting accounting;
516 unsigned long flags;
517 atomic_t idle_counter;
518 atomic_t at_max_writeback_rate;
520 struct cache *cache;
522 struct bcache_device **devices;
523 unsigned int devices_max_used;
524 atomic_t attached_dev_nr;
525 struct list_head cached_devs;
526 uint64_t cached_dev_sectors;
527 atomic_long_t flash_dev_dirty_sectors;
528 struct closure caching;
530 struct closure sb_write;
531 struct semaphore sb_write_mutex;
533 mempool_t search;
534 mempool_t bio_meta;
535 struct bio_set bio_split;
538 struct shrinker shrink;
541 struct mutex bucket_lock;
544 unsigned short bucket_bits;
547 unsigned short block_bits;
553 unsigned int btree_pages;
571 struct list_head btree_cache;
572 struct list_head btree_cache_freeable;
573 struct list_head btree_cache_freed;
576 unsigned int btree_cache_used;
584 wait_queue_head_t btree_cache_wait;
585 struct task_struct *btree_cache_alloc_lock;
586 spinlock_t btree_cannibalize_lock;
598 atomic_t prio_blocked;
599 wait_queue_head_t bucket_wait;
605 atomic_t rescale;
609 atomic_t search_inflight;
616 uint16_t min_prio;
622 uint8_t need_gc;
623 struct gc_stat gc_stats;
624 size_t nbuckets;
625 size_t avail_nbuckets;
627 struct task_struct *gc_thread;
629 struct bkey gc_done;
643 uint8_t gc_after_writeback;
649 int gc_mark_valid;
652 atomic_t sectors_to_gc;
653 wait_queue_head_t gc_wait;
655 struct keybuf moving_gc_keys;
679 * bch_cache_set_alloc() will make sure the pool can allocate iterators argument
684 mempool_t fill_iter;
686 struct bset_sort_state sort;
689 struct list_head data_buckets;
690 spinlock_t data_bucket_lock;
692 struct journal journal;
695 unsigned int congested_last_us;
696 atomic_t congested;
699 unsigned int congested_read_threshold_us;
700 unsigned int congested_write_threshold_us;
702 struct time_stats btree_gc_time;
703 struct time_stats btree_split_time;
704 struct time_stats btree_read_time;
706 atomic_long_t cache_read_races;
707 atomic_long_t writeback_keys_done;
708 atomic_long_t writeback_keys_failed;
710 atomic_long_t reclaim;
711 atomic_long_t reclaimed_journal_buckets;
712 atomic_long_t flush_write;
714 enum {
717 } on_error;
719 unsigned int error_limit;
720 unsigned int error_decay;
722 unsigned short journal_delay_ms;
723 bool expensive_debug_checks;
724 unsigned int verify:1;
725 unsigned int key_merging_disabled:1;
726 unsigned int gc_always_rewrite:1;
727 unsigned int shrinker_disabled:1;
728 unsigned int copy_gc_enabled:1;
729 unsigned int idle_max_writeback_rate_enabled:1;
732 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];