/fs/btrfs/ |
D | file-item.c | 98 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() 179 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in __btrfs_lookup_bio_sums() local 187 if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) { in __btrfs_lookup_bio_sums() 189 csum_size, GFP_NOFS); in __btrfs_lookup_bio_sums() 242 memset(csum, 0, csum_size); in __btrfs_lookup_bio_sums() 264 (item_size / csum_size) * in __btrfs_lookup_bio_sums() 275 diff = diff * csum_size; in __btrfs_lookup_bio_sums() 280 csum_size * count); in __btrfs_lookup_bio_sums() [all …]
|
D | scrub.c | 181 u16 csum_size; member 497 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx() 1385 sctx->csum_size); in scrub_setup_recheck_block() 1851 if (memcmp(csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_data() 1877 memcpy(on_disk_csum, h->csum, sctx->csum_size); in scrub_checksum_tree_block() 1921 if (memcmp(calculated_csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_tree_block() 1947 memcpy(on_disk_csum, s->csum, sctx->csum_size); in scrub_checksum_super() 1980 if (memcmp(calculated_csum, on_disk_csum, sctx->csum_size)) in scrub_checksum_super() 2287 memcpy(spage->csum, csum, sctx->csum_size); in scrub_pages() 2474 memcpy(csum, sum->sums + index, sctx->csum_size); in scrub_find_csum() [all …]
|
D | disk-io.c | 282 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_tree_block() local 306 if (csum_size > sizeof(inline_result)) { in csum_tree_block() 307 result = kzalloc(csum_size, GFP_NOFS); in csum_tree_block() 317 if (memcmp_extent_buffer(buf, result, 0, csum_size)) { in csum_tree_block() 320 memcpy(&found, result, csum_size); in csum_tree_block() 322 read_extent_buffer(buf, &val, 0, csum_size); in csum_tree_block() 333 write_extent_buffer(buf, result, 0, csum_size); in csum_tree_block() 409 const int csum_size = sizeof(crc); in btrfs_check_super_csum() local 410 char result[csum_size]; in btrfs_check_super_csum() 421 if (memcmp(raw_disk_sb, result, csum_size)) in btrfs_check_super_csum()
|
D | compression.c | 91 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in compressed_bio_size() local 94 (DIV_ROUND_UP(disk_size, root->sectorsize)) * csum_size; in compressed_bio_size()
|
D | check-integrity.c | 251 int csum_size; member 699 state->csum_size = btrfs_super_csum_size(selected_super); in btrfsic_process_superblock() 1812 if (memcmp(csum, h->csum, state->csum_size)) in btrfsic_test_for_metadata() 3112 state->csum_size = 0; in btrfsic_mount()
|
D | extent_io.c | 2443 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio() local 2447 icsum *= csum_size; in btrfs_create_repair_bio() 2449 csum_size); in btrfs_create_repair_bio()
|
D | extent-tree.c | 2754 u64 csum_size; in btrfs_csum_bytes_to_leaves() local 2758 csum_size = BTRFS_LEAF_DATA_SIZE(root) - sizeof(struct btrfs_item); in btrfs_csum_bytes_to_leaves() 2759 num_csums_per_leaf = div64_u64(csum_size, in btrfs_csum_bytes_to_leaves() 5300 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in calc_global_metadata_size() local 5315 csum_size * 2; in calc_global_metadata_size()
|
/fs/ext4/ |
D | namei.c | 1702 int csum_size = 0; in do_split() local 1706 csum_size = sizeof(struct ext4_dir_entry_tail); in do_split() 1765 de->rec_len = ext4_rec_len_to_disk(data1 + (blocksize - csum_size) - in do_split() 1768 de2->rec_len = ext4_rec_len_to_disk(data2 + (blocksize - csum_size) - in do_split() 1771 if (csum_size) { in do_split() 1882 int csum_size = 0; in add_dirent_to_buf() local 1886 csum_size = sizeof(struct ext4_dir_entry_tail); in add_dirent_to_buf() 1890 blocksize - csum_size, fname, &de); in add_dirent_to_buf() 1950 int csum_size = 0; in make_indexed_dir() local 1953 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 1162 inode->i_sb->s_blocksize, csum_size, in ext4_finish_convert_inline_dir() 1170 csum_size = sizeof(struct ext4_dir_entry_tail); in ext4_finish_convert_inline_dir() 1177 inode->i_sb->s_blocksize - csum_size); in ext4_finish_convert_inline_dir() 1179 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 | 2586 int csum_size); 3094 int blocksize, int csum_size,
|
/fs/jbd2/ |
D | revoke.c | 573 int csum_size = 0; in write_one_revoke_record() local 590 csum_size = sizeof(struct jbd2_journal_revoke_tail); in write_one_revoke_record() 599 if (offset + sz > journal->j_blocksize - csum_size) { in write_one_revoke_record()
|
D | recovery.c | 841 int csum_size = 0; in scan_revoke_records() local 853 csum_size = sizeof(struct jbd2_journal_revoke_tail); in scan_revoke_records() 854 if (rcount > journal->j_blocksize - csum_size) in scan_revoke_records()
|
D | commit.c | 396 int csum_size = 0; in jbd2_journal_commit_transaction() local 401 csum_size = sizeof(struct jbd2_journal_block_tail); in jbd2_journal_commit_transaction() 714 space_left < tag_bytes + 16 + csum_size) { in jbd2_journal_commit_transaction()
|