Lines Matching defs:c
111 int bch2_stripe_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_stripe_validate()
137 void bch2_stripe_to_text(struct printbuf *out, struct bch_fs *c, in bch2_stripe_to_text()
198 struct bch_fs *c = trans->c; in __mark_stripe_bucket() local
285 struct bch_fs *c = trans->c; in mark_stripe_bucket() local
389 struct bch_fs *c = trans->c; in bch2_trigger_stripe() local
635 static void ec_validate_checksums(struct bch_fs *c, struct ec_stripe_buf *buf) in ec_validate_checksums()
699 static int ec_do_recov(struct bch_fs *c, struct ec_stripe_buf *buf) in ec_do_recov()
753 static void ec_block_io(struct bch_fs *c, struct ec_stripe_buf *buf, in ec_block_io()
844 struct bch_fs *c = trans->c; in bch2_ec_read_extent() local
919 static int __ec_stripe_mem_alloc(struct bch_fs *c, size_t idx, gfp_t gfp) in __ec_stripe_mem_alloc()
961 static bool __bch2_stripe_is_open(struct bch_fs *c, u64 idx) in __bch2_stripe_is_open()
972 static bool bch2_stripe_is_open(struct bch_fs *c, u64 idx) in bch2_stripe_is_open()
983 static bool bch2_try_open_stripe(struct bch_fs *c, in bch2_try_open_stripe()
1002 static void bch2_stripe_close(struct bch_fs *c, struct ec_stripe_new *s) in bch2_stripe_close()
1015 static u64 stripe_idx_to_delete(struct bch_fs *c) in stripe_idx_to_delete()
1032 struct bch_fs *c = container_of(h, struct bch_fs, ec_stripes_heap); in ec_stripes_heap_set_backpointer() local
1060 static void heap_verify_backpointer(struct bch_fs *c, size_t idx) in heap_verify_backpointer()
1069 void bch2_stripes_heap_del(struct bch_fs *c, in bch2_stripes_heap_del()
1084 void bch2_stripes_heap_insert(struct bch_fs *c, in bch2_stripes_heap_insert()
1107 void bch2_stripes_heap_update(struct bch_fs *c, in bch2_stripes_heap_update()
1140 struct bch_fs *c = trans->c; in ec_stripe_delete() local
1178 struct bch_fs *c = in ec_stripe_delete_work() local
1199 void bch2_do_stripe_deletes(struct bch_fs *c) in bch2_do_stripe_deletes()
1212 struct bch_fs *c = trans->c; in ec_stripe_key_update() local
1281 struct bch_fs *c = trans->c; in ec_stripe_update_extent() local
1373 struct bch_fs *c = trans->c; in ec_stripe_update_bucket() local
1402 static int ec_stripe_update_extents(struct bch_fs *c, struct ec_stripe_buf *s) in ec_stripe_update_extents()
1424 static void zero_out_rest_of_ec_bucket(struct bch_fs *c, in zero_out_rest_of_ec_bucket()
1451 void bch2_ec_stripe_new_free(struct bch_fs *c, struct ec_stripe_new *s) in bch2_ec_stripe_new_free()
1463 struct bch_fs *c = s->c; in ec_stripe_create() local
1566 static struct ec_stripe_new *get_pending_stripe(struct bch_fs *c) in get_pending_stripe()
1583 struct bch_fs *c = container_of(work, in ec_stripe_create_work() local
1593 void bch2_ec_do_stripe_creates(struct bch_fs *c) in bch2_ec_do_stripe_creates()
1601 static void ec_stripe_new_set_pending(struct bch_fs *c, struct ec_stripe_head *h) in ec_stripe_new_set_pending()
1619 static void ec_stripe_new_cancel(struct bch_fs *c, struct ec_stripe_head *h, int err) in ec_stripe_new_cancel()
1625 void bch2_ec_bucket_cancel(struct bch_fs *c, struct open_bucket *ob) in bch2_ec_bucket_cancel()
1632 void *bch2_writepoint_ec_buf(struct bch_fs *c, struct write_point *wp) in bch2_writepoint_ec_buf()
1655 static unsigned pick_blocksize(struct bch_fs *c, in pick_blocksize()
1686 static bool may_create_new_stripe(struct bch_fs *c) in may_create_new_stripe()
1691 static void ec_stripe_key_init(struct bch_fs *c, in ec_stripe_key_init()
1719 static int ec_new_stripe_alloc(struct bch_fs *c, struct ec_stripe_head *h) in ec_new_stripe_alloc()
1748 static void ec_stripe_head_devs_update(struct bch_fs *c, struct ec_stripe_head *h) in ec_stripe_head_devs_update()
1803 ec_new_stripe_head_alloc(struct bch_fs *c, unsigned disk_label, in ec_new_stripe_head_alloc()
1825 void bch2_ec_stripe_head_put(struct bch_fs *c, struct ec_stripe_head *h) in bch2_ec_stripe_head_put()
1843 struct bch_fs *c = trans->c; in __bch2_ec_stripe_head_get() local
1893 struct bch_fs *c = trans->c; in new_stripe_alloc_buckets() local
1983 static s64 get_existing_stripe(struct bch_fs *c, in get_existing_stripe()
2021 struct bch_fs *c = trans->c; in __bch2_ec_stripe_head_reuse() local
2087 struct bch_fs *c = trans->c; in __bch2_ec_stripe_head_reserve() local
2148 struct bch_fs *c = trans->c; in bch2_ec_stripe_head_get() local
2295 int bch2_dev_remove_stripes(struct bch_fs *c, unsigned dev_idx) in bch2_dev_remove_stripes()
2308 static void __bch2_ec_stop(struct bch_fs *c, struct bch_dev *ca) in __bch2_ec_stop()
2340 void bch2_ec_stop_dev(struct bch_fs *c, struct bch_dev *ca) in bch2_ec_stop_dev()
2345 void bch2_fs_ec_stop(struct bch_fs *c) in bch2_fs_ec_stop()
2350 static bool bch2_fs_ec_flush_done(struct bch_fs *c) in bch2_fs_ec_flush_done()
2361 void bch2_fs_ec_flush(struct bch_fs *c) in bch2_fs_ec_flush()
2366 int bch2_stripes_read(struct bch_fs *c) in bch2_stripes_read()
2389 void bch2_stripes_heap_to_text(struct printbuf *out, struct bch_fs *c) in bch2_stripes_heap_to_text()
2410 static void bch2_new_stripe_to_text(struct printbuf *out, struct bch_fs *c, in bch2_new_stripe_to_text()
2429 void bch2_new_stripes_to_text(struct printbuf *out, struct bch_fs *c) in bch2_new_stripes_to_text()
2454 void bch2_fs_ec_exit(struct bch_fs *c) in bch2_fs_ec_exit()
2485 void bch2_fs_ec_init_early(struct bch_fs *c) in bch2_fs_ec_init_early()
2501 int bch2_fs_ec_init(struct bch_fs *c) in bch2_fs_ec_init()