/fs/ext4/ |
D | bitmap.c | 45 __u32 csum; in ext4_inode_bitmap_csum_set() local 51 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_set() 52 gdp->bg_inode_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_inode_bitmap_csum_set() 54 gdp->bg_inode_bitmap_csum_hi = cpu_to_le16(csum >> 16); in ext4_inode_bitmap_csum_set() 88 __u32 csum; in ext4_block_bitmap_csum_set() local 94 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_set() 95 gdp->bg_block_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_block_bitmap_csum_set() 97 gdp->bg_block_bitmap_csum_hi = cpu_to_le16(csum >> 16); in ext4_block_bitmap_csum_set()
|
D | orphan.c | 557 __u32 csum; in ext4_orphan_file_block_trigger() local 563 csum = ext4_chksum(EXT4_SB(sb), oi->of_csum_seed, in ext4_orphan_file_block_trigger() 565 csum = ext4_chksum(EXT4_SB(sb), csum, (__u8 *)data, in ext4_orphan_file_block_trigger() 568 ot->ob_checksum = cpu_to_le32(csum); in ext4_orphan_file_block_trigger()
|
D | mmp.c | 15 __u32 csum; in ext4_mmp_csum() local 17 csum = ext4_chksum(sbi, sbi->s_csum_seed, (char *)mmp, offset); in ext4_mmp_csum() 19 return cpu_to_le32(csum); in ext4_mmp_csum()
|
D | inode.c | 56 __u32 csum; in ext4_inode_csum() local 61 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, offset); in ext4_inode_csum() 62 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, csum_size); in ext4_inode_csum() 64 csum = ext4_chksum(sbi, csum, (__u8 *)raw + offset, in ext4_inode_csum() 69 csum = ext4_chksum(sbi, csum, (__u8 *)raw + in ext4_inode_csum() 73 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, in ext4_inode_csum() 77 csum = ext4_chksum(sbi, csum, (__u8 *)raw + offset, in ext4_inode_csum() 81 return csum; in ext4_inode_csum() 108 __u32 csum; in ext4_inode_csum_set() local 115 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set() [all …]
|
D | xattr.c | 139 __u32 csum; in ext4_xattr_block_csum() local 144 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&dsk_block_nr, in ext4_xattr_block_csum() 146 csum = ext4_chksum(sbi, csum, (__u8 *)hdr, offset); in ext4_xattr_block_csum() 147 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, sizeof(dummy_csum)); in ext4_xattr_block_csum() 149 csum = ext4_chksum(sbi, csum, (__u8 *)hdr + offset, in ext4_xattr_block_csum() 152 return cpu_to_le32(csum); in ext4_xattr_block_csum()
|
D | namei.c | 380 __u32 csum; in ext4_dirblock_csum() local 382 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dirblock_csum() 383 return cpu_to_le32(csum); in ext4_dirblock_csum() 476 __u32 csum; in ext4_dx_csum() local 482 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dx_csum() 483 csum = ext4_chksum(sbi, csum, (__u8 *)t, offset); in ext4_dx_csum() 484 csum = ext4_chksum(sbi, csum, (__u8 *)&dummy_csum, sizeof(dummy_csum)); in ext4_dx_csum() 486 return cpu_to_le32(csum); in ext4_dx_csum() 1078 int csum = ext4_has_metadata_csum(dir->i_sb); in htree_dirblock_to_tree() local 1091 csum ? NULL : dir)); in htree_dirblock_to_tree()
|
D | ioctl.c | 96 __u32 csum; in ext4_reset_inode_seed() local 101 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&inum, sizeof(inum)); in ext4_reset_inode_seed() 102 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, sizeof(gen)); in ext4_reset_inode_seed()
|
D | ialloc.c | 1291 __u32 csum; in __ext4_new_inode() local 1294 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&inum, in __ext4_new_inode() 1296 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, in __ext4_new_inode()
|
D | extents.c | 54 __u32 csum; in ext4_extent_block_csum() local 56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum() 58 return cpu_to_le32(csum); in ext4_extent_block_csum()
|
/fs/cachefiles/ |
D | key.c | 35 unsigned char csum, ch; in cachefiles_cook_key() local 44 csum = raw[0] + raw[1]; in cachefiles_cook_key() 48 csum += ch; in cachefiles_cook_key() 84 sprintf(key, "@%02x%c+", (unsigned) csum, 0); in cachefiles_cook_key()
|
/fs/nfsd/ |
D | nfscache.c | 94 nfsd_reply_cache_alloc(struct svc_rqst *rqstp, __wsum csum, in nfsd_reply_cache_alloc() argument 114 rp->c_key.k_csum = csum; in nfsd_reply_cache_alloc() 313 __wsum csum; in nfsd_cache_csum() local 321 csum = csum_partial(p, len, 0); in nfsd_cache_csum() 330 csum = csum_partial(p, len, csum); in nfsd_cache_csum() 335 return csum; in nfsd_cache_csum() 419 __wsum csum; in nfsd_cache_lookup() local 431 csum = nfsd_cache_csum(rqstp); in nfsd_cache_lookup() 437 rp = nfsd_reply_cache_alloc(rqstp, csum, nn); in nfsd_cache_lookup()
|
/fs/efs/ |
D | super.c | 158 int csum; in module_exit() local 173 for(csum = 0; ui >= ((__be32 *) vh);) { in module_exit() 175 csum += be32_to_cpu(cs); in module_exit() 177 if (csum) { in module_exit()
|
/fs/ksmbd/ |
D | smb_common.c | 499 unsigned int csum = 0; in ksmbd_extract_shortname() local 543 csum += *ptr; in ksmbd_extract_shortname() 545 csum = csum % (MANGLE_BASE * MANGLE_BASE); in ksmbd_extract_shortname() 546 out[baselen + 1] = mangle(csum / MANGLE_BASE); in ksmbd_extract_shortname() 547 out[baselen + 2] = mangle(csum); in ksmbd_extract_shortname()
|
/fs/btrfs/ |
D | btrfs_inode.h | 389 u64 logical_start, u8 *csum, u8 *csum_expected, int mirror_num) in btrfs_print_data_csum_error() argument 400 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error() 408 CSUM_FMT_VALUE(csum_size, csum), in btrfs_print_data_csum_error()
|
D | file-item.c | 376 u8 *csum; in btrfs_lookup_bio_sums() local 404 btrfs_bio->csum = kmalloc_array(nblocks, csum_size, in btrfs_lookup_bio_sums() 406 if (!btrfs_bio->csum) { in btrfs_lookup_bio_sums() 411 btrfs_bio->csum = btrfs_bio->csum_inline; in btrfs_lookup_bio_sums() 413 csum = btrfs_bio->csum; in btrfs_lookup_bio_sums() 415 csum = dst; in btrfs_lookup_bio_sums() 454 csum_dst = csum + sector_offset * csum_size; in btrfs_lookup_bio_sums() 1139 goto csum; in btrfs_csum_file_blocks() 1166 csum: in btrfs_csum_file_blocks()
|
D | scrub.c | 78 u8 csum[BTRFS_CSUM_SIZE]; member 237 u64 gen, int mirror_num, u8 *csum, 1345 memcpy(spage->csum, in scrub_setup_recheck_block() 1346 original_sblock->pagev[0]->csum, in scrub_setup_recheck_block() 1818 u8 csum[BTRFS_CSUM_SIZE]; in scrub_checksum_data() local 1836 crypto_shash_digest(shash, kaddr, fs_info->sectorsize, csum); in scrub_checksum_data() 1838 if (memcmp(csum, spage->csum, fs_info->csum_size)) in scrub_checksum_data() 1870 memcpy(on_disk_csum, h->csum, sctx->fs_info->csum_size); in scrub_checksum_tree_block() 1940 if (memcmp(calculated_csum, s->csum, sctx->fs_info->csum_size)) in scrub_checksum_super() 2261 u64 gen, int mirror_num, u8 *csum, in scrub_pages() argument [all …]
|
D | volumes.h | 319 u8 *csum; member 336 if (io_bio->csum != io_bio->csum_inline) { in btrfs_io_bio_free_csum() 337 kfree(io_bio->csum); in btrfs_io_bio_free_csum() 338 io_bio->csum = NULL; in btrfs_io_bio_free_csum()
|
D | compression.c | 154 u8 csum[BTRFS_CSUM_SIZE]; in check_compressed_csum() local 177 sectorsize, csum); in check_compressed_csum() 180 if (memcmp(&csum, cb_sum, csum_size) != 0) { in check_compressed_csum() 182 csum, cb_sum, cb->mirror_num); in check_compressed_csum()
|
D | check-integrity.c | 1651 u8 csum[BTRFS_CSUM_SIZE]; in btrfsic_test_for_metadata() local 1672 crypto_shash_final(shash, csum); in btrfsic_test_for_metadata() 1673 if (memcmp(csum, h->csum, fs_info->csum_size)) in btrfsic_test_for_metadata()
|
D | inode.c | 3292 u8 csum[BTRFS_CSUM_SIZE]; in check_data_csum() local 3297 csum_expected = ((u8 *)io_bio->csum) + offset_sectors * csum_size; in check_data_csum() 3302 crypto_shash_digest(shash, kaddr + pgoff, len, csum); in check_data_csum() 3304 if (memcmp(csum, csum_expected, csum_size)) in check_data_csum() 3310 btrfs_print_data_csum_error(BTRFS_I(inode), start, csum, csum_expected, in check_data_csum() 3359 if (io_bio->csum == NULL) in btrfs_verify_data_csum() 8256 const bool csum = !(BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM); in btrfs_check_read_dio_bio() local 8271 (!csum || !check_data_csum(inode, io_bio, in btrfs_check_read_dio_bio() 8380 btrfs_io_bio(bio)->csum = dip->csums + csum_offset; in btrfs_submit_dio_bio() 8397 const bool csum = !(BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM); in btrfs_create_dio_private() local [all …]
|
D | extent_io.c | 2651 if (failed_io_bio->csum) { in btrfs_repair_one_sector() 2654 repair_io_bio->csum = repair_io_bio->csum_inline; in btrfs_repair_one_sector() 2655 memcpy(repair_io_bio->csum, in btrfs_repair_one_sector() 2656 failed_io_bio->csum + csum_size * icsum, csum_size); in btrfs_repair_one_sector()
|
D | disk-io.c | 221 if (memcmp(disk_sb->csum, result, fs_info->csum_size)) in btrfs_check_super_csum() 534 get_eb_offset_in_page(eb, offsetof(struct btrfs_header, csum)); in validate_extent_buffer() 3866 sb->csum); in write_dev_supers()
|
D | ctree.h | 155 u8 csum[BTRFS_CSUM_SIZE]; member 221 u8 csum[BTRFS_CSUM_SIZE]; member
|
/fs/jbd2/ |
D | commit.c | 95 __u32 csum; in jbd2_commit_block_csum_set() local 104 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_commit_block_csum_set() 105 h->h_chksum[0] = cpu_to_be32(csum); in jbd2_commit_block_csum_set()
|
D | journal.c | 132 __u32 csum; in jbd2_superblock_csum() local 137 csum = jbd2_chksum(j, ~0, (char *)sb, sizeof(journal_superblock_t)); in jbd2_superblock_csum() 140 return cpu_to_be32(csum); in jbd2_superblock_csum() 1041 __u32 csum; in jbd2_descriptor_block_csum_set() local 1049 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_descriptor_block_csum_set() 1050 tail->t_checksum = cpu_to_be32(csum); in jbd2_descriptor_block_csum_set()
|