Home
last modified time | relevance | path

Searched refs:csum_type (Results 1 – 25 of 27) sorted by relevance

12

/fs/bcachefs/
A Dextents_format.h100 csum_type:4, member
106 csum_type:4,
125 csum_type:4, member
131 csum_type:4,
151 csum_type:4, member
155 csum_type:4,
A Dio_write.c795 if (crc.csum_type || in init_append_extent()
900 op->csum_type != op->crc.csum_type) { in bch2_write_prep_encoded_data()
925 op->crc.csum_type = 0; in bch2_write_prep_encoded_data()
944 op->crc.csum_type != op->csum_type) { in bch2_write_prep_encoded_data()
954 (op->compression_opt || op->crc.csum_type != op->csum_type)) { in bch2_write_prep_encoded_data()
964 op->crc.csum_type = 0; in bch2_write_prep_encoded_data()
1021 (op->csum_type && in bch2_write_extent()
1067 if (op->csum_type) in bch2_write_extent()
1113 op->csum_type); in bch2_write_extent()
1129 op->crc.csum_type))) in bch2_write_extent()
[all …]
A Dextents.c447 if (lp.crc.csum_type != rp.crc.csum_type || in bch2_extent_merge()
457 if (lp.crc.csum_type && in bch2_extent_merge()
573 return (l.csum_type != r.csum_type || in bch2_crc_unpacked_cmp()
587 u.csum_type && in can_narrow_crc()
590 bch2_csum_type_is_encryption(n.csum_type); in can_narrow_crc()
600 if (!n.csum_type) in bch2_can_narrow_extent_crcs()
628 if (!n.csum_type) { in bch2_bkey_narrow_crcs()
631 u.csum_type && in bch2_bkey_narrow_crcs()
665 .csum_type = _src.csum_type, \ in bch2_extent_crc_pack()
706 if (bch_crc_bytes[new.csum_type] <= 4 && in bch2_extent_crc_append()
[all …]
A Dchecksum.c328 unsigned csum_type; in bch2_rechecksum_bio() member
335 bool mergeable = crc_old.csum_type == new_csum_type && in bch2_rechecksum_bio()
342 BUG_ON(bch2_csum_type_is_encryption(crc_old.csum_type) != in bch2_rechecksum_bio()
348 i->csum = __bch2_checksum_bio(c, i->csum_type, in bch2_rechecksum_bio()
360 merged = bch2_checksum_bio(c, crc_old.csum_type, in bch2_rechecksum_bio()
372 bch2_prt_csum_type(&buf, crc_old.csum_type); in bch2_rechecksum_bio()
384 .csum_type = i->csum_type, in bch2_rechecksum_bio()
A Dec.h34 EBUG_ON(s->csum_type >= BCH_CSUM_NR); in stripe_csum_offset()
36 unsigned csum_bytes = bch_crc_bytes[s->csum_type]; in stripe_csum_offset()
84 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get()
92 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
A Dio_read.c729 rbio->pick.crc.csum_type)) { in __bch2_rbio_narrow_crcs()
831 csum = bch2_checksum_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
867 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
882 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
908 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
965 bch2_csum_type_is_encryption(rbio->pick.crc.csum_type)) in bch2_read_endio()
967 else if (rbio->pick.crc.csum_type) in bch2_read_endio()
1079 if (unlikely(bch2_csum_type_is_encryption(pick.crc.csum_type)) && in __bch2_read_extent()
1125 (pick.crc.csum_type != BCH_CSUM_none && in __bch2_read_extent()
1127 (bch2_csum_type_is_encryption(pick.crc.csum_type) && in __bch2_read_extent()
[all …]
A Dec_format.h13 __u8 csum_type; member
A Dextents_types.h12 u8 csum_type; member
A Dio_write_types.h83 unsigned csum_type:4; member
A Dio_write.h41 op->csum_type = bch2_data_checksum_type(c, opts); in bch2_write_op_init()
A Dextents.h154 .csum_type = _crc.csum_type, \ in bch2_extent_crc_unpack()
211 return crc.csum_type != BCH_CSUM_none || crc_is_compressed(crc); in crc_is_encoded()
A Dsuper-io.c765 enum bch_csum_type csum_type = BCH_SB_CSUM_TYPE(sb->sb); in read_one_super() local
766 if (csum_type >= BCH_CSUM_NR || in read_one_super()
767 bch2_csum_type_is_encryption(csum_type)) { in read_one_super()
773 struct bch_csum csum = csum_vstruct(NULL, csum_type, null_nonce(), sb->sb); in read_one_super()
775 bch2_csum_err_msg(err, csum_type, sb->sb->csum, csum); in read_one_super()
A Dec.c157 bch2_prt_csum_type(out, s.csum_type); in bch2_stripe_to_text()
178 if (s.csum_type < BCH_CSUM_NR && in bch2_stripe_to_text()
587 return bch2_checksum(NULL, v->csum_type, in ec_block_checksum()
598 if (!v->csum_type) in ec_generate_checksums()
616 if (!v->csum_type) in ec_validate_checksums()
638 bch2_csum_err_msg(&err, v->csum_type, want, got); in ec_validate_checksums()
1540 s->v.csum_type = BCH_CSUM_crc32c; in ec_stripe_key_init()
A Ddata_update.c893 if (bch2_csum_type_is_encryption(p.crc.csum_type)) { in bch2_data_update_init()
895 m->op.csum_type = p.crc.csum_type; in bch2_data_update_init()
A Dbackpointers.c488 if (!p.crc.csum_type) in check_extent_checksum()
521 struct bch_csum csum = bch2_checksum(c, p.crc.csum_type, nonce, data_buf, bytes); in check_extent_checksum()
A Djournal_io.c1248 enum bch_csum_type csum_type = JSET_CSUM_TYPE(&j->j); in bch2_journal_print_checksum_error() local
1259 bch2_csum_to_text(&buf, csum_type, ptr->csum); in bch2_journal_print_checksum_error()
1266 bch2_csum_to_text(&buf, csum_type, j->j.csum); in bch2_journal_print_checksum_error()
A Dopts.c125 PRT_STR_OPT_BOUNDSCHECKED(csum_type, enum bch_csum_type);
A Dmove.c195 rbio->pick.crc.csum = bch2_checksum_bio(c, rbio->pick.crc.csum_type, in move_write()
1333 if (!p.crc.csum_type) in scrub_pred()
A Dcompress.c296 crc->csum_type = 0; in bch2_bio_uncompress_inplace()
A Dfs-io-buffered.c86 if (crc.csum_type || crc.compression_type) in extent_partial_reads_expensive()
/fs/btrfs/
A Dfs.c34 const char *btrfs_super_csum_name(u16 csum_type) in btrfs_super_csum_name() argument
37 return btrfs_csums[csum_type].name; in btrfs_super_csum_name()
44 const char *btrfs_super_csum_driver(u16 csum_type) in btrfs_super_csum_driver() argument
47 return btrfs_csums[csum_type].driver[0] ? in btrfs_super_csum_driver()
48 btrfs_csums[csum_type].driver : in btrfs_super_csum_driver()
49 btrfs_csums[csum_type].name; in btrfs_super_csum_driver()
A Ddisk-io.c142 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument
144 switch (csum_type) { in btrfs_supported_super_csum()
2017 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument
2020 const char *csum_driver = btrfs_super_csum_driver(csum_type); in btrfs_init_csum_hash()
2033 switch (csum_type) { in btrfs_init_csum_hash()
2046 btrfs_super_csum_name(csum_type), in btrfs_init_csum_hash()
3286 u16 csum_type; in open_ctree() local
3330 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()
3331 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree()
3333 csum_type); in open_ctree()
[all …]
A Dfs.h1013 const char *btrfs_super_csum_name(u16 csum_type);
1014 const char *btrfs_super_csum_driver(u16 csum_type);
A Dsuper.c2302 u16 csum_type; in check_dev_super() local
2318 csum_type = btrfs_super_csum_type(sb); in check_dev_super()
2319 if (csum_type != btrfs_super_csum_type(fs_info->super_copy)) { in check_dev_super()
2321 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
A Dsysfs.c1250 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show() local
1253 btrfs_super_csum_name(csum_type), in btrfs_checksum_show()

Completed in 70 milliseconds

12