/linux-6.1.9/fs/btrfs/ |
D | file-item.c | 125 u16 csum_size) in max_ordered_sum_bytes() argument 127 u32 ncsums = (PAGE_SIZE - sizeof(struct btrfs_ordered_sum)) / csum_size; in max_ordered_sum_bytes() 140 return sizeof(struct btrfs_ordered_sum) + num_sectors * fs_info->csum_size; in btrfs_ordered_sum_size() 198 const u32 csum_size = fs_info->csum_size; in btrfs_lookup_csum() local 220 csums_in_item /= csum_size; in btrfs_lookup_csum() 231 csum_offset * csum_size); in btrfs_lookup_csum() 272 const u32 csum_size = fs_info->csum_size; in search_csum_tree() local 289 csum_len = (itemsize / csum_size) * sectorsize; in search_csum_tree() 307 csum_len = (itemsize / csum_size) * sectorsize; in search_csum_tree() 314 ret * csum_size); in search_csum_tree() [all …]
|
D | btrfs_inode.h | 418 const u32 csum_size = root->fs_info->csum_size; in btrfs_print_data_csum_error() local 426 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error() 427 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error() 434 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error() 435 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error()
|
D | scrub.c | 1520 sctx->fs_info->csum_size); in scrub_setup_recheck_block() 2000 if (memcmp(csum, sector->csum, fs_info->csum_size)) in scrub_checksum_data() 2032 memcpy(on_disk_csum, h->csum, sctx->fs_info->csum_size); in scrub_checksum_tree_block() 2065 if (memcmp(calculated_csum, on_disk_csum, sctx->fs_info->csum_size)) in scrub_checksum_tree_block() 2102 if (memcmp(calculated_csum, s->csum, sctx->fs_info->csum_size)) in scrub_checksum_super() 2440 memcpy(sector->csum, csum, sctx->fs_info->csum_size); in scrub_sectors() 2649 memcpy(csum, sum->sums + index * sctx->fs_info->csum_size, in scrub_find_csum() 2650 sctx->fs_info->csum_size); in scrub_find_csum() 2775 memcpy(sector->csum, csum, sctx->fs_info->csum_size); in scrub_sectors_for_parity()
|
D | disk-io.c | 185 if (memcmp(disk_sb->csum, result, fs_info->csum_size)) in btrfs_check_super_csum() 339 write_extent_buffer(eb, result, 0, fs_info->csum_size); in csum_one_extent_buffer() 469 const u32 csum_size = fs_info->csum_size; in validate_extent_buffer() local 502 if (memcmp(result, header_csum, csum_size) != 0) { in validate_extent_buffer() 506 CSUM_FMT_VALUE(csum_size, header_csum), in validate_extent_buffer() 507 CSUM_FMT_VALUE(csum_size, result), in validate_extent_buffer() 3478 fs_info->csum_size = btrfs_super_csum_size(disk_super); in open_ctree() 3551 fs_info->csums_per_leaf = BTRFS_MAX_ITEM_SIZE(fs_info) / fs_info->csum_size; in open_ctree()
|
D | extent_io.c | 849 const u32 csum_size = fs_info->csum_size; in btrfs_repair_one_sector() local 853 failed_bbio->csum + csum_size * icsum, csum_size); in btrfs_repair_one_sector()
|
D | tree-checker.c | 343 const u32 csumsize = fs_info->csum_size; in check_csum_item()
|
D | check-integrity.c | 1674 if (memcmp(csum, h->csum, fs_info->csum_size)) in btrfsic_test_for_metadata()
|
D | inode.c | 3437 if (memcmp(csum, csum_expected, fs_info->csum_size)) in btrfs_check_sector_csum() 3446 return csums + offset_in_sectors * fs_info->csum_size; in btrfs_csum_ptr() 7982 dip->csums = kcalloc(nr_sectors, fs_info->csum_size, GFP_NOFS); in btrfs_submit_direct()
|
D | ctree.h | 1006 u32 csum_size; member
|
D | ioctl.c | 3704 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
|
/linux-6.1.9/fs/ext4/ |
D | namei.c | 1969 int csum_size = 0; in do_split() local 1973 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split() 2037 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split() 2040 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split() 2043 if (csum_size) { in do_split() 2157 int csum_size = 0; in add_dirent_to_buf() local 2161 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf() 2165 blocksize - csum_size, fname, &de); in add_dirent_to_buf() 2221 int csum_size = 0; in make_indexed_dir() local 2224 csum_size = sizeof(struct ext4_dir_entry_tail); in make_indexed_dir() [all …]
|
D | inline.c | 1151 int err, csum_size = 0, header_size = 0; in ext4_finish_convert_inline_dir() local 1161 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir() 1169 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir() 1176 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir() 1178 if (csum_size) in ext4_finish_convert_inline_dir()
|
D | inode.c | 59 unsigned int csum_size = sizeof(dummy_csum); in ext4_inode_csum() local 62 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, csum_size); in ext4_inode_csum() 63 offset += csum_size; in ext4_inode_csum() 74 csum_size); in ext4_inode_csum() 75 offset += csum_size; in ext4_inode_csum()
|
D | ext4.h | 3055 int csum_size); 3617 int blocksize, int csum_size,
|
/linux-6.1.9/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 | 904 unsigned csum_size = 0; in scan_revoke_records() local 913 csum_size = sizeof(struct jbd2_journal_block_tail); in scan_revoke_records() 914 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() 736 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()
|
/linux-6.1.9/include/uapi/linux/ |
D | btrfs.h | 267 __u16 csum_size; /* out */ member
|