Home
last modified time | relevance | path

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

/fs/btrfs/
Dfile-item.c98 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csum() local
120 csums_in_item /= csum_size; in btrfs_lookup_csum()
131 csum_offset * csum_size); in btrfs_lookup_csum()
169 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in __btrfs_lookup_bio_sums() local
241 (item_size / csum_size) * in __btrfs_lookup_bio_sums()
252 diff = diff * csum_size; in __btrfs_lookup_bio_sums()
257 csum_size * count); in __btrfs_lookup_bio_sums()
260 memcpy(dst, sum, count * csum_size); in __btrfs_lookup_bio_sums()
307 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csums_range() local
333 if (offset * csum_size < in btrfs_lookup_csums_range()
[all …]
Dscrub.c133 u16 csum_size; member
197 u16 csum_size);
202 u16 csum_size);
403 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx()
883 csum, generation, sctx->csum_size); in scrub_handle_errored_block()
993 sctx->csum_size); in scrub_handle_errored_block()
1143 generation, sctx->csum_size); in scrub_handle_errored_block()
1279 u16 csum_size) in scrub_recheck_block() argument
1325 csum_size); in scrub_recheck_block()
1334 u16 csum_size) in scrub_recheck_block_checksum() argument
[all …]
Ddisk-io.c261 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in csum_tree_block() local
285 if (csum_size > sizeof(inline_result)) { in csum_tree_block()
286 result = kzalloc(csum_size * sizeof(char), GFP_NOFS); in csum_tree_block()
296 if (memcmp_extent_buffer(buf, result, 0, csum_size)) { in csum_tree_block()
299 memcpy(&found, result, csum_size); in csum_tree_block()
301 read_extent_buffer(buf, &val, 0, csum_size); in csum_tree_block()
313 write_extent_buffer(buf, result, 0, csum_size); in csum_tree_block()
372 const int csum_size = sizeof(crc); in btrfs_check_super_csum() local
373 char result[csum_size]; in btrfs_check_super_csum()
384 if (memcmp(raw_disk_sb, result, csum_size)) in btrfs_check_super_csum()
Dcompression.c92 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in compressed_bio_size() local
96 csum_size; in compressed_bio_size()
Dcheck-integrity.c240 int csum_size; member
692 state->csum_size = btrfs_super_csum_size(selected_super); in btrfsic_process_superblock()
1859 if (memcmp(csum, h->csum, state->csum_size)) in btrfsic_test_for_metadata()
3246 state->csum_size = 0; in btrfsic_mount()
Dextent-tree.c4486 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in calc_global_metadata_size() local
4501 csum_size * 2; in calc_global_metadata_size()
4745 u64 csum_size; in calc_csum_metadata_size() local
4759 csum_size = BTRFS_LEAF_DATA_SIZE(root) - sizeof(struct btrfs_item); in calc_csum_metadata_size()
4760 num_csums_per_leaf = (int)div64_u64(csum_size, in calc_csum_metadata_size()
/fs/ext4/
Dnamei.c1685 int csum_size = 0; in do_split() local
1689 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split()
1738 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
1741 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
1744 if (csum_size) { in do_split()
1868 int csum_size = 0; in add_dirent_to_buf() local
1872 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf()
1876 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
1936 int csum_size = 0; in make_indexed_dir() local
1939 csum_size = sizeof(struct ext4_dir_entry_tail); in make_indexed_dir()
[all …]
Dinline.c1113 int err, csum_size = 0, header_size = 0; in ext4_finish_convert_inline_dir() local
1124 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir()
1132 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir()
1139 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir()
1141 if (csum_size) { in ext4_finish_convert_inline_dir()
Dext4.h2365 int csum_size);
2855 int blocksize, int csum_size,
/fs/jbd2/
Drevoke.c578 int csum_size = 0; in write_one_revoke_record() local
595 csum_size = sizeof(struct jbd2_journal_revoke_tail); in write_one_revoke_record()
599 if (offset >= journal->j_blocksize - csum_size) { in write_one_revoke_record()
Dcommit.c398 int csum_size = 0; in jbd2_journal_commit_transaction() local
403 csum_size = sizeof(struct jbd2_journal_block_tail); in jbd2_journal_commit_transaction()
716 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()