Lines Matching refs:csum_granularity_bits
127 bkey_fsck_err_on(s->csum_granularity_bits >= 64, in bch2_stripe_validate()
130 s->csum_granularity_bits); in bch2_stripe_validate()
154 if (s.csum_granularity_bits < 64) in bch2_stripe_to_text()
155 prt_printf(out, "%llu", 1ULL << s.csum_granularity_bits); in bch2_stripe_to_text()
157 prt_printf(out, "(invalid shift %u)", s.csum_granularity_bits); in bch2_stripe_to_text()
569 unsigned csum_granularity = 1U << v->csum_granularity_bits; in ec_stripe_buf_init()
602 unsigned csum_granularity = 1 << v->csum_granularity_bits; in ec_block_checksum()
632 ec_block_checksum(buf, i, j << v->csum_granularity_bits)); in ec_generate_checksums()
638 unsigned csum_granularity = 1 << v->csum_granularity_bits; in ec_validate_checksums()
652 unsigned j = offset >> v->csum_granularity_bits; in ec_validate_checksums()
1705 s->v.csum_granularity_bits = ilog2(c->opts.encoded_extent_max >> 9); in ec_stripe_key_init()
1710 BUG_ON(1 << s->v.csum_granularity_bits >= in ec_stripe_key_init()
1712 s->v.csum_granularity_bits == U8_MAX); in ec_stripe_key_init()
1713 s->v.csum_granularity_bits++; in ec_stripe_key_init()