Lines Matching defs:ca
342 struct bch_dev *ca = c ? bch2_dev_tryget_noerror(c, dev) : NULL; in __bch2_alloc_v4_to_text() local
623 struct bch_dev *ca = NULL; in bch2_alloc_read() local
726 struct bch_dev *ca, in bch2_bucket_do_index()
804 static inline int bch2_dev_data_type_accounting_mod(struct btree_trans *trans, struct bch_dev *ca, in bch2_dev_data_type_accounting_mod()
818 int bch2_alloc_key_to_dev_counters(struct btree_trans *trans, struct bch_dev *ca, in bch2_alloc_key_to_dev_counters()
866 struct bch_dev *ca = bch2_dev_bucket_tryget(c, new.k->p); in bch2_trigger_alloc() local
1098 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket()
1125 struct bch_dev **ca, struct bkey *hole) in bch2_get_key_or_real_bucket_hole()
1170 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key() local
1254 struct bch_dev *ca, in bch2_check_alloc_hole_freespace()
1522 struct bch_dev *ca = bch2_dev_tryget_noerror(c, k.k->p.inode); in bch2_check_bucket_gens_key() local
1577 struct bch_dev *ca = NULL; in bch2_check_alloc_info() local
1717 struct bch_dev *ca = bch2_dev_tryget_noerror(c, alloc_k.k->p.inode); in bch2_check_alloc_to_lru_ref() local
1787 static int discard_in_flight_add(struct bch_dev *ca, u64 bucket, bool in_progress) in discard_in_flight_add()
1809 static void discard_in_flight_remove(struct bch_dev *ca, u64 bucket) in discard_in_flight_remove()
1828 struct bch_dev *ca, in bch2_discard_one_bucket()
1936 struct bch_dev *ca = container_of(work, struct bch_dev, discard_work); in bch2_do_discards_work() local
1964 void bch2_dev_do_discards(struct bch_dev *ca) in bch2_dev_do_discards()
1989 struct bch_dev *ca, in bch2_do_discards_fast_one()
2016 struct bch_dev *ca = container_of(work, struct bch_dev, discard_fast_work); in bch2_do_discards_fast_work() local
2059 static void bch2_discard_one_bucket_fast(struct bch_dev *ca, u64 bucket) in bch2_discard_one_bucket_fast()
2081 struct bch_dev *ca, in invalidate_one_bp()
2109 struct bch_dev *ca, in invalidate_one_bucket_by_bps()
2138 struct bch_dev *ca, in invalidate_one_bucket()
2211 struct bch_dev *ca, bool *wrapped) in next_lru_key()
2227 struct bch_dev *ca = container_of(work, struct bch_dev, invalidate_work); in bch2_do_invalidates_work() local
2277 void bch2_dev_do_invalidates(struct bch_dev *ca) in bch2_dev_do_invalidates()
2301 int bch2_dev_freespace_init(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_freespace_init()
2442 int bch2_dev_remove_alloc(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_remove_alloc()
2590 static bool bch2_dev_has_open_write_point(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_has_open_write_point()
2607 void bch2_dev_allocator_set_rw(struct bch_fs *c, struct bch_dev *ca, bool rw) in bch2_dev_allocator_set_rw()
2621 void bch2_dev_allocator_remove(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_remove()
2656 void bch2_dev_allocator_add(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_allocator_add()
2664 void bch2_dev_allocator_background_exit(struct bch_dev *ca) in bch2_dev_allocator_background_exit()
2669 void bch2_dev_allocator_background_init(struct bch_dev *ca) in bch2_dev_allocator_background_init()