Lines Matching refs:bch_dev
35 static void bch2_discard_one_bucket_fast(struct bch_dev *, u64);
349 struct bch_dev *ca = c ? bch2_dev_bucket_tryget_noerror(c, k.k->p) : NULL; in bch2_alloc_to_text()
599 struct bch_dev *ca = NULL; in bch2_alloc_read()
668 struct bch_dev *ca, in bch2_bucket_do_index()
774 static inline int bch2_dev_data_type_accounting_mod(struct btree_trans *trans, struct bch_dev *ca, in bch2_dev_data_type_accounting_mod()
790 int bch2_alloc_key_to_dev_counters(struct btree_trans *trans, struct bch_dev *ca, in bch2_alloc_key_to_dev_counters()
838 struct bch_dev *ca = bch2_dev_bucket_tryget(c, new.k->p); in bch2_trigger_alloc()
1065 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket()
1092 struct bch_dev **ca, struct bkey *hole) in bch2_get_key_or_real_bucket_hole()
1138 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key()
1257 struct bch_dev *ca, in bch2_check_alloc_hole_freespace()
1452 struct bch_dev *ca = bch2_dev_tryget_noerror(c, k.k->p.inode); in bch2_check_bucket_gens_key()
1507 struct bch_dev *ca = NULL; in bch2_check_alloc_info()
1647 struct bch_dev *ca = bch2_dev_tryget_noerror(c, alloc_k.k->p.inode); in bch2_check_alloc_to_lru_ref()
1714 static int discard_in_flight_add(struct bch_dev *ca, u64 bucket, bool in_progress) in discard_in_flight_add()
1734 static void discard_in_flight_remove(struct bch_dev *ca, u64 bucket) in discard_in_flight_remove()
1757 struct bch_dev *ca, in bch2_discard_one_bucket()
1877 struct bch_dev *ca = container_of(work, struct bch_dev, discard_work); in bch2_do_discards_work()
1902 void bch2_dev_do_discards(struct bch_dev *ca) in bch2_dev_do_discards()
1952 struct bch_dev *ca = container_of(work, struct bch_dev, discard_fast_work); in bch2_do_discards_fast_work()
1996 static void bch2_discard_one_bucket_fast(struct bch_dev *ca, u64 bucket) in bch2_discard_one_bucket_fast()
2100 struct bch_dev *ca, bool *wrapped) in next_lru_key()
2116 struct bch_dev *ca = container_of(work, struct bch_dev, invalidate_work); in bch2_do_invalidates_work()
2161 void bch2_dev_do_invalidates(struct bch_dev *ca) in bch2_dev_do_invalidates()
2185 int bch2_dev_freespace_init(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_freespace_init()
2324 int bch2_dev_remove_alloc(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_remove_alloc()
2470 static bool bch2_dev_has_open_write_point(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_has_open_write_point()
2489 void bch2_dev_allocator_remove(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_remove()
2526 void bch2_dev_allocator_add(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_add()
2537 void bch2_dev_allocator_background_exit(struct bch_dev *ca) in bch2_dev_allocator_background_exit()
2542 void bch2_dev_allocator_background_init(struct bch_dev *ca) in bch2_dev_allocator_background_init()