Home
last modified time | relevance | path

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

/linux-4.19.296/fs/btrfs/
Dfile-item.c87 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_lookup_csum() local
109 csums_in_item /= csum_size; in btrfs_lookup_csum()
120 csum_offset * csum_size); in btrfs_lookup_csum()
169 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in __btrfs_lookup_bio_sums() local
177 if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) { in __btrfs_lookup_bio_sums()
179 csum_size, GFP_NOFS); in __btrfs_lookup_bio_sums()
235 memset(csum, 0, csum_size); in __btrfs_lookup_bio_sums()
257 (item_size / csum_size) * in __btrfs_lookup_bio_sums()
268 diff = diff * csum_size; in __btrfs_lookup_bio_sums()
273 csum_size * count); in __btrfs_lookup_bio_sums()
[all …]
Dordered-data.h137 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ordered_sum_size() local
139 return sizeof(struct btrfs_ordered_sum) + num_sectors * csum_size; in btrfs_ordered_sum_size()
Dscrub.c161 u16 csum_size; member
619 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx()
1346 sctx->csum_size); in scrub_setup_recheck_block()
1833 if (memcmp(csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_data()
1858 memcpy(on_disk_csum, h->csum, sctx->csum_size); in scrub_checksum_tree_block()
1902 if (memcmp(calculated_csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_tree_block()
1928 memcpy(on_disk_csum, s->csum, sctx->csum_size); in scrub_checksum_super()
1961 if (memcmp(calculated_csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_super()
2267 memcpy(spage->csum, csum, sctx->csum_size); in scrub_pages()
2459 memcpy(csum, sum->sums + index, sctx->csum_size); in scrub_find_csum()
[all …]
Dcompression.c66 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in compressed_bio_size() local
69 (DIV_ROUND_UP(disk_size, fs_info->sectorsize)) * csum_size; in compressed_bio_size()
Dcheck-integrity.c240 int csum_size; member
672 state->csum_size = btrfs_super_csum_size(selected_super); in btrfsic_process_superblock()
1733 if (memcmp(csum, h->csum, state->csum_size)) in btrfsic_test_for_metadata()
2919 state->csum_size = 0; in btrfsic_mount()
Ddisk-io.c270 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_tree_block() local
298 if (memcmp_extent_buffer(buf, result, 0, csum_size)) { in csum_tree_block()
301 memcpy(&found, result, csum_size); in csum_tree_block()
303 read_extent_buffer(buf, &val, 0, csum_size); in csum_tree_block()
311 write_extent_buffer(buf, result, 0, csum_size); in csum_tree_block()
Dextent_io.c2386 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio() local
2390 icsum *= csum_size; in btrfs_create_repair_bio()
2392 csum_size); in btrfs_create_repair_bio()
Dextent-tree.c2746 u64 csum_size; in btrfs_csum_bytes_to_leaves() local
2750 csum_size = BTRFS_MAX_ITEM_SIZE(fs_info); in btrfs_csum_bytes_to_leaves()
2751 num_csums_per_leaf = div64_u64(csum_size, in btrfs_csum_bytes_to_leaves()
/linux-4.19.296/fs/ext4/
Dnamei.c1775 int csum_size = 0; in do_split() local
1779 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split()
1841 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split()
1844 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split()
1847 if (csum_size) { in do_split()
1956 int csum_size = 0; in add_dirent_to_buf() local
1960 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf()
1964 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
2020 int csum_size = 0; in make_indexed_dir() local
2023 csum_size = sizeof(struct ext4_dir_entry_tail); in make_indexed_dir()
[all …]
Dinline.c1159 int err, csum_size = 0, header_size = 0; in ext4_finish_convert_inline_dir() local
1170 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir()
1178 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir()
1185 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir()
1187 if (csum_size) { in ext4_finish_convert_inline_dir()
Dinode.c60 unsigned int csum_size = sizeof(dummy_csum); in ext4_inode_csum() local
63 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, csum_size); in ext4_inode_csum()
64 offset += csum_size; in ext4_inode_csum()
75 csum_size); in ext4_inode_csum()
76 offset += csum_size; in ext4_inode_csum()
Dext4.h2618 int csum_size);
3139 int blocksize, int csum_size,
/linux-4.19.296/fs/jbd2/
Drevoke.c572 int csum_size = 0; in write_one_revoke_record() local
588 csum_size = sizeof(struct jbd2_journal_block_tail); in write_one_revoke_record()
597 if (offset + sz > journal->j_blocksize - csum_size) { in write_one_revoke_record()
Drecovery.c817 int csum_size = 0; in scan_revoke_records() local
829 csum_size = sizeof(struct jbd2_journal_block_tail); in scan_revoke_records()
830 if (rcount > journal->j_blocksize - csum_size) in scan_revoke_records()
Dcommit.c382 int csum_size = 0; in jbd2_journal_commit_transaction() local
387 csum_size = sizeof(struct jbd2_journal_block_tail); in jbd2_journal_commit_transaction()
696 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()