/kernel/linux/linux-5.10/fs/btrfs/ |
D | file-item.c | 118 u16 csum_size) in max_ordered_sum_bytes() argument 120 u32 ncsums = (PAGE_SIZE - sizeof(struct btrfs_ordered_sum)) / csum_size; in max_ordered_sum_bytes() 184 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_lookup_csum() local 206 csums_in_item /= csum_size; in btrfs_lookup_csum() 217 csum_offset * csum_size); in btrfs_lookup_csum() 273 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_lookup_bio_sums() local 283 if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) { in btrfs_lookup_bio_sums() 284 btrfs_bio->csum = kmalloc_array(nblocks, csum_size, in btrfs_lookup_bio_sums() 337 memset(csum, 0, csum_size); in btrfs_lookup_bio_sums() 359 (item_size / csum_size) * in btrfs_lookup_bio_sums() [all …]
|
D | btrfs_inode.h | 376 const u16 csum_size = btrfs_super_csum_size(sb); in btrfs_print_data_csum_error() local 384 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error() 385 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error() 392 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error() 393 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error()
|
D | ordered-data.h | 140 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ordered_sum_size() local 142 return sizeof(struct btrfs_ordered_sum) + num_sectors * csum_size; in btrfs_ordered_sum_size()
|
D | compression.c | 139 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in compressed_bio_size() local 142 (DIV_ROUND_UP(disk_size, fs_info->sectorsize)) * csum_size; in compressed_bio_size() 150 const u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in check_compressed_csum() local 170 if (memcmp(&csum, cb_sum, csum_size)) { in check_compressed_csum() 179 cb_sum += csum_size; in check_compressed_csum() 636 const u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_submit_compressed_read() local 738 sums += csum_size * nr_sectors; in btrfs_submit_compressed_read()
|
D | ordered-data.c | 873 const u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_find_ordered_sum() local 887 memcpy(sum + index, ordered_sum->sums + i * csum_size, in btrfs_find_ordered_sum() 888 num_sectors * csum_size); in btrfs_find_ordered_sum() 890 index += (int)num_sectors * csum_size; in btrfs_find_ordered_sum()
|
D | scrub.c | 164 u16 csum_size; member 613 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx() 1352 sctx->csum_size); in scrub_setup_recheck_block() 1803 if (memcmp(csum, spage->csum, sctx->csum_size)) in scrub_checksum_data() 1826 memcpy(on_disk_csum, h->csum, sctx->csum_size); in scrub_checksum_tree_block() 1859 if (memcmp(calculated_csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_tree_block() 1896 if (memcmp(calculated_csum, s->csum, sctx->csum_size)) in scrub_checksum_super() 2201 memcpy(spage->csum, csum, sctx->csum_size); in scrub_pages() 2393 memcpy(csum, sum->sums + index * sctx->csum_size, sctx->csum_size); in scrub_find_csum() 2511 memcpy(spage->csum, csum, sctx->csum_size); in scrub_pages_for_parity()
|
D | disk-io.c | 455 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_dirty_buffer() local 492 write_extent_buffer(eb, result, 0, csum_size); in csum_dirty_buffer() 534 u16 csum_size; in btrfs_validate_metadata_buffer() local 544 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_validate_metadata_buffer() 587 if (memcmp_extent_buffer(eb, result, 0, csum_size)) { in btrfs_validate_metadata_buffer() 590 read_extent_buffer(eb, &val, 0, csum_size); in btrfs_validate_metadata_buffer() 594 CSUM_FMT_VALUE(csum_size, val), in btrfs_validate_metadata_buffer() 595 CSUM_FMT_VALUE(csum_size, result), in btrfs_validate_metadata_buffer()
|
D | check-integrity.c | 236 int csum_size; member 663 state->csum_size = btrfs_super_csum_size(selected_super); in btrfsic_process_superblock() 1726 if (memcmp(csum, h->csum, state->csum_size)) in btrfsic_test_for_metadata() 2800 state->csum_size = 0; in btrfsic_mount()
|
D | extent_io.c | 2686 const u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_submit_read_repair() local 2690 failed_io_bio->csum + csum_size * icsum, csum_size); in btrfs_submit_read_repair()
|
D | extent-tree.c | 2098 u64 csum_size; in btrfs_csum_bytes_to_leaves() local 2102 csum_size = BTRFS_MAX_ITEM_SIZE(fs_info); in btrfs_csum_bytes_to_leaves() 2103 num_csums_per_leaf = div64_u64(csum_size, in btrfs_csum_bytes_to_leaves()
|
D | inode.c | 2863 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in check_data_csum() local 2867 csum_expected = ((u8 *)io_bio->csum) + icsum * csum_size; in check_data_csum() 2874 if (memcmp(csum, csum_expected, csum_size)) in check_data_csum() 7828 const u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_dio_private() local 7832 dip_size += csum_size * nblocks; in btrfs_create_dio_private()
|
D | ioctl.c | 3351 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | namei.c | 1859 int csum_size = 0; in do_split() local 1863 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split() 1925 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split() 1928 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split() 1931 if (csum_size) { in do_split() 2037 int csum_size = 0; in add_dirent_to_buf() local 2041 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf() 2045 blocksize - csum_size, fname, &de); in add_dirent_to_buf() 2100 int csum_size = 0; in make_indexed_dir() local 2103 csum_size = sizeof(struct ext4_dir_entry_tail); in make_indexed_dir() [all …]
|
D | inline.c | 1143 int err, csum_size = 0, header_size = 0; in ext4_finish_convert_inline_dir() local 1153 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir() 1161 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir() 1168 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir() 1170 if (csum_size) in ext4_finish_convert_inline_dir()
|
D | inode.c | 58 unsigned int csum_size = sizeof(dummy_csum); in ext4_inode_csum() local 61 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, csum_size); in ext4_inode_csum() 62 offset += csum_size; in ext4_inode_csum() 73 csum_size); in ext4_inode_csum() 74 offset += csum_size; in ext4_inode_csum()
|
D | ext4.h | 2947 int csum_size); 3491 int blocksize, int csum_size,
|
/kernel/linux/linux-5.10/fs/jbd2/ |
D | revoke.c | 578 int csum_size = 0; in write_one_revoke_record() local 594 csum_size = sizeof(struct jbd2_journal_block_tail); in write_one_revoke_record() 603 if (offset + sz > journal->j_blocksize - csum_size) { in write_one_revoke_record()
|
D | recovery.c | 900 int csum_size = 0; in scan_revoke_records() local 909 csum_size = sizeof(struct jbd2_journal_block_tail); in scan_revoke_records() 910 if (rcount > journal->j_blocksize - csum_size) in scan_revoke_records()
|
D | commit.c | 408 int csum_size = 0; in jbd2_journal_commit_transaction() local 413 csum_size = sizeof(struct jbd2_journal_block_tail); in jbd2_journal_commit_transaction() 747 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | btrfs.h | 170 __u16 csum_size; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | btrfs.h | 267 __u16 csum_size; /* out */ member
|