Lines Matching refs:crc_old
401 struct bch_extent_crc_unpacked crc_old, in bch2_rechecksum_bio() argument
408 struct nonce nonce = extent_nonce(version, crc_old); in bch2_rechecksum_bio()
420 bool mergeable = crc_old.csum_type == new_csum_type && in bch2_rechecksum_bio()
422 unsigned crc_nonce = crc_old.nonce; in bch2_rechecksum_bio()
425 BUG_ON(crc_old.uncompressed_size != bio_sectors(bio)); in bch2_rechecksum_bio()
426 BUG_ON(crc_is_compressed(crc_old)); in bch2_rechecksum_bio()
427 BUG_ON(bch2_csum_type_is_encryption(crc_old.csum_type) != in bch2_rechecksum_bio()
445 merged = bch2_checksum_bio(c, crc_old.csum_type, in bch2_rechecksum_bio()
446 extent_nonce(version, crc_old), bio); in bch2_rechecksum_bio()
448 if (bch2_crc_cmp(merged, crc_old.csum) && !c->opts.no_data_io) { in bch2_rechecksum_bio()
453 crc_old.csum.hi, in bch2_rechecksum_bio()
454 crc_old.csum.lo, in bch2_rechecksum_bio()
457 bch2_prt_csum_type(&buf, crc_old.csum_type); in bch2_rechecksum_bio()
470 .compression_type = crc_old.compression_type, in bch2_rechecksum_bio()