Lines Matching refs:bch_dev
17 struct bch_dev *ca = bch2_dev_rcu_noerror(c, pos.inode); in bch2_dev_bucket_exists()
108 static inline s64 bch2_bucket_sectors_fragmented(struct bch_dev *ca, in bch2_bucket_sectors_fragmented()
116 static inline s64 bch2_gc_bucket_sectors_fragmented(struct bch_dev *ca, struct bucket a) in bch2_gc_bucket_sectors_fragmented()
167 struct bch_dev *ca) in alloc_lru_idx_fragmentation()
306 int bch2_alloc_key_to_dev_counters(struct btree_trans *, struct bch_dev *,
316 void bch2_dev_do_discards(struct bch_dev *);
319 static inline u64 should_invalidate_buckets(struct bch_dev *ca, in should_invalidate_buckets()
331 void bch2_dev_do_invalidates(struct bch_dev *);
346 int bch2_dev_freespace_init(struct bch_fs *, struct bch_dev *, u64, u64);
348 int bch2_dev_remove_alloc(struct bch_fs *, struct bch_dev *);
353 void bch2_dev_allocator_remove(struct bch_fs *, struct bch_dev *);
354 void bch2_dev_allocator_add(struct bch_fs *, struct bch_dev *);
356 void bch2_dev_allocator_background_exit(struct bch_dev *);
357 void bch2_dev_allocator_background_init(struct bch_dev *);