Home
last modified time | relevance | path

Searched refs:csum_size (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/fs/btrfs/
Dfile-item.c134 return (bytes >> fs_info->sectorsize_bits) * fs_info->csum_size; in bytes_to_csum_size()
137 static size_t csum_size_to_bytes(const struct btrfs_fs_info *fs_info, u32 csum_size) in csum_size_to_bytes() argument
139 ASSERT(IS_ALIGNED(csum_size, fs_info->csum_size)); in csum_size_to_bytes()
141 return (csum_size / fs_info->csum_size) << fs_info->sectorsize_bits; in csum_size_to_bytes()
147 fs_info->csum_size); in max_ordered_sum_bytes()
216 const u32 csum_size = fs_info->csum_size; in btrfs_lookup_csum() local
238 csums_in_item /= csum_size; in btrfs_lookup_csum()
249 csum_offset * csum_size); in btrfs_lookup_csum()
290 const u32 csum_size = fs_info->csum_size; in search_csum_tree() local
307 csum_len = (itemsize / csum_size) * sectorsize; in search_csum_tree()
[all …]
Dscrub.c276 fs_info->csum_size, GFP_KERNEL); in init_scrub_stripe()
617 memcpy(on_disk_csum, header->csum, fs_info->csum_size); in scrub_verify_one_metadata()
664 if (memcmp(calculated_csum, on_disk_csum, fs_info->csum_size) != 0) { in scrub_verify_one_metadata()
670 CSUM_FMT_VALUE(fs_info->csum_size, on_disk_csum), in scrub_verify_one_metadata()
671 CSUM_FMT_VALUE(fs_info->csum_size, calculated_csum)); in scrub_verify_one_metadata()
1625 sector_nr * fs_info->csum_size; in scrub_find_fill_first_stripe()
Ddisk-io.c160 if (memcmp(disk_sb->csum, result, fs_info->csum_size)) in btrfs_check_super_csum()
293 write_extent_buffer(eb, result, 0, fs_info->csum_size); in btree_csum_one_bio()
341 const u32 csum_size = fs_info->csum_size; in btrfs_validate_extent_buffer() local
376 if (memcmp(result, header_csum, csum_size) != 0) { in btrfs_validate_extent_buffer()
380 CSUM_FMT_VALUE(csum_size, header_csum), in btrfs_validate_extent_buffer()
381 CSUM_FMT_VALUE(csum_size, result), in btrfs_validate_extent_buffer()
3223 fs_info->csum_size = btrfs_super_csum_size(disk_super); in open_ctree()
3298 fs_info->csums_per_leaf = BTRFS_MAX_ITEM_SIZE(fs_info) / fs_info->csum_size; in open_ctree()
Dfs.h732 u32 csum_size; member
Dinode.c235 const u32 csum_size = fs_info->csum_size; in print_data_reloc_error() local
250 CSUM_FMT_VALUE(csum_size, csum), in print_data_reloc_error()
251 CSUM_FMT_VALUE(csum_size, csum_expected), in print_data_reloc_error()
261 CSUM_FMT_VALUE(csum_size, csum), in print_data_reloc_error()
262 CSUM_FMT_VALUE(csum_size, csum_expected), in print_data_reloc_error()
323 const u32 csum_size = root->fs_info->csum_size; in btrfs_print_data_csum_error() local
336 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error()
337 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error()
344 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error()
345 CSUM_FMT_VALUE(csum_size, csum_expected), in btrfs_print_data_csum_error()
[all …]
Draid56.c1476 total_sector_nr * fs_info->csum_size; in verify_bio_data_sectors()
1707 fs_info->csum_size; in verify_one_sector()
2100 fs_info->csum_size, GFP_NOFS); in fill_data_csums()
Dtree-checker.c347 const u32 csumsize = fs_info->csum_size; in check_csum_item()
Dcheck-integrity.c1681 if (memcmp(csum, h->csum, fs_info->csum_size)) in btrfsic_test_for_metadata()
Dioctl.c2836 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
/linux-6.6.21/fs/ext4/
Dnamei.c1988 int csum_size = 0; in do_split() local
1992 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split()
2056 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
2059 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
2062 if (csum_size) { in do_split()
2176 int csum_size = 0; in add_dirent_to_buf() local
2180 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf()
2184 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
2240 int csum_size = 0; in make_indexed_dir() local
2243 csum_size = sizeof(struct ext4_dir_entry_tail); in make_indexed_dir()
[all …]
Dinline.c1132 int err, csum_size = 0, header_size = 0; in ext4_finish_convert_inline_dir() local
1142 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir()
1150 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir()
1157 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir()
1159 if (csum_size) in ext4_finish_convert_inline_dir()
Dinode.c59 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()
Dext4.h3054 int csum_size);
3597 int blocksize, int csum_size,
/linux-6.6.21/fs/jbd2/
Drevoke.c578 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()
Drecovery.c918 unsigned csum_size = 0; in scan_revoke_records() local
927 csum_size = sizeof(struct jbd2_journal_block_tail); in scan_revoke_records()
928 if (rcount > journal->j_blocksize - csum_size) in scan_revoke_records()
Dcommit.c375 int csum_size = 0; in jbd2_journal_commit_transaction() local
380 csum_size = sizeof(struct jbd2_journal_block_tail); in jbd2_journal_commit_transaction()
702 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()
/linux-6.6.21/include/uapi/linux/
Dbtrfs.h284 __u16 csum_size; /* out */ member