Lines Matching refs:bch_dev
17 struct bch_dev *ca = bch2_dev_rcu_noerror(c, pos.inode); in bch2_dev_bucket_exists()
106 static inline s64 bch2_bucket_sectors_fragmented(struct bch_dev *ca, in bch2_bucket_sectors_fragmented()
114 static inline s64 bch2_gc_bucket_sectors_fragmented(struct bch_dev *ca, struct bucket a) in bch2_gc_bucket_sectors_fragmented()
165 struct bch_dev *ca) in alloc_lru_idx_fragmentation()
305 int bch2_alloc_key_to_dev_counters(struct btree_trans *, struct bch_dev *,
315 void bch2_dev_do_discards(struct bch_dev *);
318 static inline u64 should_invalidate_buckets(struct bch_dev *ca, in should_invalidate_buckets()
330 void bch2_dev_do_invalidates(struct bch_dev *);
345 int bch2_dev_freespace_init(struct bch_fs *, struct bch_dev *, u64, u64);
347 int bch2_dev_remove_alloc(struct bch_fs *, struct bch_dev *);
352 void bch2_dev_allocator_set_rw(struct bch_fs *, struct bch_dev *, bool);
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 *);