Lines Matching refs:bch_dev
19 struct bch_dev *ca = bch2_dev_rcu_noerror(c, pos.inode); in bch2_dev_bucket_exists()
110 static inline s64 bch2_bucket_sectors_fragmented(struct bch_dev *ca, in bch2_bucket_sectors_fragmented()
118 static inline s64 bch2_gc_bucket_sectors_fragmented(struct bch_dev *ca, struct bucket a) in bch2_gc_bucket_sectors_fragmented()
169 struct bch_dev *ca) in alloc_lru_idx_fragmentation()
304 int bch2_alloc_key_to_dev_counters(struct btree_trans *, struct bch_dev *,
312 void bch2_dev_do_discards(struct bch_dev *);
315 static inline u64 should_invalidate_buckets(struct bch_dev *ca, in should_invalidate_buckets()
327 void bch2_dev_do_invalidates(struct bch_dev *);
342 int bch2_dev_freespace_init(struct bch_fs *, struct bch_dev *, u64, u64);
344 int bch2_dev_remove_alloc(struct bch_fs *, struct bch_dev *);
349 void bch2_dev_allocator_remove(struct bch_fs *, struct bch_dev *);
350 void bch2_dev_allocator_add(struct bch_fs *, struct bch_dev *);
352 void bch2_dev_allocator_background_exit(struct bch_dev *);
353 void bch2_dev_allocator_background_init(struct bch_dev *);