Lines Matching defs:ca

342 	struct bch_dev *ca = c ? bch2_dev_bucket_tryget_noerror(c, k.k->p) : NULL;  in bch2_alloc_to_text()  local
595 struct bch_dev *ca = NULL; in bch2_alloc_read() local
698 struct bch_dev *ca, in bch2_bucket_do_index()
776 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() local
1085 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket()
1113 struct bch_dev **ca, struct bkey *hole) in bch2_get_key_or_real_bucket_hole()
1158 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key() local
1242 struct bch_dev *ca, in bch2_check_alloc_hole_freespace()
1503 struct bch_dev *ca = bch2_dev_tryget_noerror(c, k.k->p.inode); in bch2_check_bucket_gens_key() local
1558 struct bch_dev *ca = NULL; in bch2_check_alloc_info() local
1698 struct bch_dev *ca = bch2_dev_tryget_noerror(c, alloc_k.k->p.inode); in bch2_check_alloc_to_lru_ref() local
1768 static int discard_in_flight_add(struct bch_dev *ca, u64 bucket, bool in_progress) in discard_in_flight_add()
1788 static void discard_in_flight_remove(struct bch_dev *ca, u64 bucket) in discard_in_flight_remove()
1815 static inline bool discard_opt_enabled(struct bch_fs *c, struct bch_dev *ca) in discard_opt_enabled()
1823 struct bch_dev *ca, in bch2_discard_one_bucket()
1931 struct bch_dev *ca = container_of(work, struct bch_dev, discard_work); in bch2_do_discards_work() local
1959 void bch2_dev_do_discards(struct bch_dev *ca) in bch2_dev_do_discards()
1984 struct bch_dev *ca, in bch2_do_discards_fast_one()
2011 struct bch_dev *ca = container_of(work, struct bch_dev, discard_fast_work); in bch2_do_discards_fast_work() local
2054 static void bch2_discard_one_bucket_fast(struct bch_dev *ca, u64 bucket) in bch2_discard_one_bucket_fast()
2076 struct bch_dev *ca, in invalidate_one_bp()
2104 struct bch_dev *ca, in invalidate_one_bucket_by_bps()
2133 struct bch_dev *ca, in invalidate_one_bucket()
2203 struct bch_dev *ca, bool *wrapped) in next_lru_key()
2219 struct bch_dev *ca = container_of(work, struct bch_dev, invalidate_work); in bch2_do_invalidates_work() local
2269 void bch2_dev_do_invalidates(struct bch_dev *ca) in bch2_dev_do_invalidates()
2293 int bch2_dev_freespace_init(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_freespace_init()
2432 int bch2_dev_remove_alloc(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_remove_alloc()
2578 static bool bch2_dev_has_open_write_point(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_has_open_write_point()
2597 void bch2_dev_allocator_remove(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_remove()
2634 void bch2_dev_allocator_add(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_add()
2645 void bch2_dev_allocator_background_exit(struct bch_dev *ca) in bch2_dev_allocator_background_exit()
2650 void bch2_dev_allocator_background_init(struct bch_dev *ca) in bch2_dev_allocator_background_init()