Lines Matching refs:nr_redundant
145 unsigned nr_data = s.nr_blocks - s.nr_redundant; in bch2_stripe_to_text()
151 s.nr_redundant); in bch2_stripe_to_text()
191 unsigned nr_data = s.v->nr_blocks - s.v->nr_redundant; in __mark_stripe_bucket()
227 a->stripe_redundancy != s.v->nr_redundant, trans, in __mark_stripe_bucket()
268 a->stripe_redundancy = s.v->nr_redundant; in __mark_stripe_bucket()
375 m->nr_redundant = s->nr_redundant; in stripe_to_mem()
401 new_s->nr_redundant != old_s->nr_redundant)); in bch2_trigger_stripe()
410 new_s->nr_redundant == old_s->nr_redundant && in bch2_trigger_stripe()
432 gc->nr_redundant = new_s->nr_redundant; in bch2_trigger_stripe()
445 s64 sectors = (u64) le16_to_cpu(new_s->sectors) * new_s->nr_redundant; in bch2_trigger_stripe()
460 s64 sectors = -((s64) le16_to_cpu(old_s->sectors)) * old_s->nr_redundant; in bch2_trigger_stripe()
516 unsigned i, nr_data = s->nr_blocks - s->nr_redundant; in bkey_matches_stripe()
686 unsigned nr_data = v->nr_blocks - v->nr_redundant; in ec_generate_ec()
689 raid_gen(nr_data, v->nr_redundant, bytes, buf->data); in ec_generate_ec()
703 unsigned nr_data = v->nr_blocks - v->nr_redundant; in ec_do_recov()
706 if (ec_nr_failed(buf) > v->nr_redundant) { in ec_do_recov()
716 raid_rec(nr_failed, failed, nr_data, v->nr_redundant, bytes, buf->data); in ec_do_recov()
759 enum bch_data_type data_type = idx < v->nr_blocks - v->nr_redundant in ec_block_io()
891 if (ec_nr_failed(buf) > v->nr_redundant) { in bch2_ec_read_extent()
1347 .redundancy = v->nr_redundant, in ec_stripe_update_extent()
1397 unsigned i, nr_data = v->nr_blocks - v->nr_redundant; in ec_stripe_update_extents()
1457 unsigned i, nr_data = v->nr_blocks - v->nr_redundant; in ec_stripe_create()
1695 s->v.nr_redundant = nr_parity; in ec_stripe_key_init()
1894 BUG_ON(v->nr_redundant != h->s->nr_parity); in new_stripe_alloc_buckets()
1998 m->nr_redundant == head->redundancy && in get_existing_stripe()
2000 m->blocks_nonempty < m->nr_blocks - m->nr_redundant && in get_existing_stripe()
2037 BUG_ON(existing_v->nr_redundant != h->s->nr_parity); in __bch2_ec_stripe_head_reuse()
2039 existing_v->nr_redundant; in __bch2_ec_stripe_head_reuse()
2392 m->nr_blocks - m->nr_redundant, in bch2_stripes_heap_to_text()
2393 m->nr_redundant); in bch2_stripes_heap_to_text()