Lines Matching refs:nr_data
145 unsigned nr_data = s.nr_blocks - s.nr_redundant; in bch2_stripe_to_text() local
150 nr_data, in bch2_stripe_to_text()
174 i < nr_data && in bch2_stripe_to_text()
191 unsigned nr_data = s.v->nr_blocks - s.v->nr_redundant; in __mark_stripe_bucket() local
192 bool parity = ptr_idx >= nr_data; in __mark_stripe_bucket()
516 unsigned i, nr_data = s->nr_blocks - s->nr_redundant; in bkey_matches_stripe() local
519 for (i = 0; i < nr_data; i++) in bkey_matches_stripe()
686 unsigned nr_data = v->nr_blocks - v->nr_redundant; in ec_generate_ec() local
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() local
712 for (i = 0; i < nr_data; i++) in ec_do_recov()
716 raid_rec(nr_failed, failed, nr_data, v->nr_redundant, bytes, buf->data); in ec_do_recov()
1406 unsigned i, nr_data = v->nr_blocks - v->nr_redundant; in ec_stripe_update_extents() local
1413 for (i = 0; i < nr_data; i++) { in ec_stripe_update_extents()
1466 unsigned i, nr_data = v->nr_blocks - v->nr_redundant; in ec_stripe_create() local
1474 for (i = 0; i < nr_data; i++) in ec_stripe_create()
1497 for (i = 0; i < nr_data; i++) in ec_stripe_create()
1513 for (i = nr_data; i < v->nr_blocks; i++) in ec_stripe_create()
1546 if (i < nr_data) { in ec_stripe_create()
1693 unsigned nr_data, in ec_stripe_key_init() argument
1703 s->v.nr_blocks = nr_data + nr_parity; in ec_stripe_key_init()
1735 s->nr_data = min_t(unsigned, h->nr_active_devs, in ec_new_stripe_alloc()
1740 s->nr_data, s->nr_parity, in ec_new_stripe_alloc()
1830 h->s->nr_data) == h->s->nr_data) in bch2_ec_stripe_head_put()
1902 BUG_ON(v->nr_blocks != h->s->nr_data + h->s->nr_parity); in new_stripe_alloc_buckets()
1918 if (i < h->s->nr_data) in new_stripe_alloc_buckets()
1924 BUG_ON(nr_have_data > h->s->nr_data); in new_stripe_alloc_buckets()
1941 h->s->nr_data + h->s->nr_parity, in new_stripe_alloc_buckets()
1942 h->s->nr_data); in new_stripe_alloc_buckets()
1943 BUG_ON(j >= h->s->nr_data + h->s->nr_parity); in new_stripe_alloc_buckets()
1955 if (nr_have_data < h->s->nr_data) { in new_stripe_alloc_buckets()
1959 h->s->nr_data, in new_stripe_alloc_buckets()
1968 h->s->nr_data, 0); in new_stripe_alloc_buckets()
1969 BUG_ON(j >= h->s->nr_data); in new_stripe_alloc_buckets()
2047 h->s->nr_data = existing_v->nr_blocks - in __bch2_ec_stripe_head_reuse()
2414 s->idx, s->nr_data, s->nr_parity, in bch2_new_stripe_to_text()
2415 bitmap_weight(s->blocks_allocated, s->nr_data), in bch2_new_stripe_to_text()