Lines Matching refs:ec_stripes_heap
921 ec_stripes_heap n, *h = &c->ec_stripes_heap; in __ec_stripe_mem_alloc()
1017 ec_stripes_heap *h = &c->ec_stripes_heap; in stripe_idx_to_delete()
1029 static inline void ec_stripes_heap_set_backpointer(ec_stripes_heap *h, in ec_stripes_heap_set_backpointer()
1032 struct bch_fs *c = container_of(h, struct bch_fs, ec_stripes_heap); in ec_stripes_heap_set_backpointer()
1050 ec_stripes_heap *_h = (ec_stripes_heap *)h; in ec_stripes_heap_swap()
1062 ec_stripes_heap *h = &c->ec_stripes_heap; in heap_verify_backpointer()
1080 min_heap_del(&c->ec_stripes_heap, m->heap_idx, &callbacks, &c->ec_stripes_heap); in bch2_stripes_heap_del()
1093 BUG_ON(min_heap_full(&c->ec_stripes_heap)); in bch2_stripes_heap_insert()
1095 genradix_ptr(&c->stripes, idx)->heap_idx = c->ec_stripes_heap.nr; in bch2_stripes_heap_insert()
1096 min_heap_push(&c->ec_stripes_heap, &((struct ec_stripe_heap_entry) { in bch2_stripes_heap_insert()
1101 &c->ec_stripes_heap); in bch2_stripes_heap_insert()
1114 ec_stripes_heap *h = &c->ec_stripes_heap; in bch2_stripes_heap_update()
1124 min_heap_sift_up(h, i, &callbacks, &c->ec_stripes_heap); in bch2_stripes_heap_update()
1125 min_heap_sift_down(h, i, &callbacks, &c->ec_stripes_heap); in bch2_stripes_heap_update()
1986 ec_stripes_heap *h = &c->ec_stripes_heap; in get_existing_stripe()
2391 ec_stripes_heap *h = &c->ec_stripes_heap; in bch2_stripes_heap_to_text()
2480 free_heap(&c->ec_stripes_heap); in bch2_fs_ec_exit()