Lines Matching defs:cache_set
471 struct cache_set { struct
472 struct closure cl;
474 struct list_head list;
475 struct kobject kobj;
476 struct kobject internal;
477 struct dentry *debug;
478 struct cache_accounting accounting;
480 unsigned long flags;
482 struct cache_sb sb;
484 struct cache *cache[MAX_CACHES_PER_SET];
485 struct cache *cache_by_alloc[MAX_CACHES_PER_SET];
486 int caches_loaded;
488 struct bcache_device **devices;
489 struct list_head cached_devs;
490 uint64_t cached_dev_sectors;
491 struct closure caching;
493 struct closure sb_write;
494 struct semaphore sb_write_mutex;
496 mempool_t *search;
497 mempool_t *bio_meta;
498 struct bio_set *bio_split;
501 struct shrinker shrink;
504 struct mutex bucket_lock;
507 unsigned short bucket_bits;
510 unsigned short block_bits;
516 unsigned btree_pages;
534 struct list_head btree_cache;
535 struct list_head btree_cache_freeable;
536 struct list_head btree_cache_freed;
539 unsigned btree_cache_used;
547 wait_queue_head_t btree_cache_wait;
548 struct task_struct *btree_cache_alloc_lock;
560 atomic_t prio_blocked;
561 wait_queue_head_t bucket_wait;
567 atomic_t rescale;
574 uint16_t min_prio;
580 uint8_t need_gc;
581 struct gc_stat gc_stats;
582 size_t nbuckets;
584 struct task_struct *gc_thread;
586 struct bkey gc_done;
592 int gc_mark_valid;
595 atomic_t sectors_to_gc;
597 wait_queue_head_t moving_gc_wait;
598 struct keybuf moving_gc_keys;
600 struct semaphore moving_in_flight;
602 struct workqueue_struct *moving_gc_wq;
604 struct btree *root;
607 struct btree *verify_data;
608 struct bset *verify_ondisk;
609 struct mutex verify_lock;
612 unsigned nr_uuids;
613 struct uuid_entry *uuids;
615 struct closure uuid_write;
616 struct semaphore uuid_write_mutex;
622 mempool_t *fill_iter;
624 struct bset_sort_state sort;
627 struct list_head data_buckets;
628 spinlock_t data_bucket_lock;
630 struct journal journal;
633 unsigned congested_last_us;
634 atomic_t congested;
637 unsigned congested_read_threshold_us;
638 unsigned congested_write_threshold_us;
640 struct time_stats btree_gc_time;
641 struct time_stats btree_split_time;
642 struct time_stats btree_read_time;
644 atomic_long_t cache_read_races;
645 atomic_long_t writeback_keys_done;
646 atomic_long_t writeback_keys_failed;
648 enum {
651 } on_error;
652 unsigned error_limit;
653 unsigned error_decay;
655 unsigned short journal_delay_ms;
656 bool expensive_debug_checks;
657 unsigned verify:1;
658 unsigned key_merging_disabled:1;
659 unsigned gc_always_rewrite:1;
660 unsigned shrinker_disabled:1;
661 unsigned copy_gc_enabled:1;
664 struct hlist_head bucket_hash[1 << BUCKET_HASH_BITS];