Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 23 of 23) sorted by relevance

/fs/ext4/
Dbitmap.c45 __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()
Dmmp.c14 __u32 csum; in ext4_mmp_csum() local
16 csum = ext4_chksum(sbi, sbi->s_csum_seed, (char *)mmp, offset); in ext4_mmp_csum()
18 return cpu_to_le32(csum); in ext4_mmp_csum()
Dxattr.c126 __u32 csum; in ext4_xattr_block_csum() local
132 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&dsk_block_nr, in ext4_xattr_block_csum()
134 csum = ext4_chksum(sbi, csum, (__u8 *)hdr, in ext4_xattr_block_csum()
138 return cpu_to_le32(csum); in ext4_xattr_block_csum()
Dinode.c59 __u32 csum; in ext4_inode_csum() local
69 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, in ext4_inode_csum()
77 return csum; in ext4_inode_csum()
104 __u32 csum; in ext4_inode_csum_set() local
111 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set()
112 raw->i_checksum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_inode_csum_set()
115 raw->i_checksum_hi = cpu_to_le16(csum >> 16); in ext4_inode_csum_set()
4190 __u32 csum; in ext4_iget() local
4193 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&inum, in ext4_iget()
4195 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, in ext4_iget()
Dialloc.c1033 __u32 csum; in __ext4_new_inode() local
1036 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)&inum, in __ext4_new_inode()
1038 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, in __ext4_new_inode()
Dnamei.c325 __u32 csum; in ext4_dirent_csum() local
327 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dirent_csum()
328 return cpu_to_le32(csum); in ext4_dirent_csum()
416 __u32 csum; in ext4_dx_csum() local
423 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dx_csum()
424 csum = ext4_chksum(sbi, csum, (__u8 *)t, sizeof(struct dx_tail)); in ext4_dx_csum()
427 return cpu_to_le32(csum); in ext4_dx_csum()
Dextents.c64 __u32 csum; in ext4_extent_block_csum() local
66 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum()
68 return cpu_to_le32(csum); in ext4_extent_block_csum()
Dsuper.c133 __u32 csum; in ext4_superblock_csum() local
135 csum = ext4_chksum(sbi, ~0, (char *)es, offset); in ext4_superblock_csum()
137 return cpu_to_le32(csum); in ext4_superblock_csum()
/fs/nfsd/
Dnfscache.c313 __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()
339 nfsd_cache_match(struct svc_rqst *rqstp, __wsum csum, struct svc_cacherep *rp) in nfsd_cache_match() argument
345 if (csum != rp->c_csum) { in nfsd_cache_match()
369 __wsum csum) in nfsd_cache_search() argument
377 if (nfsd_cache_match(rqstp, csum, rp)) { in nfsd_cache_search()
412 __wsum csum; in nfsd_cache_lookup() local
425 csum = nfsd_cache_csum(rqstp); in nfsd_cache_lookup()
[all …]
/fs/cachefiles/
Dkey.c39 unsigned char csum, ch; in cachefiles_cook_key() local
48 csum = raw[0] + raw[1]; in cachefiles_cook_key()
52 csum += ch; in cachefiles_cook_key()
88 sprintf(key, "@%02x%c+", (unsigned) csum, 0); in cachefiles_cook_key()
/fs/btrfs/
Dfile-item.c170 u8 *csum; in __btrfs_lookup_bio_sums() local
194 btrfs_bio->csum = btrfs_bio->csum_allocated; in __btrfs_lookup_bio_sums()
197 btrfs_bio->csum = btrfs_bio->csum_inline; in __btrfs_lookup_bio_sums()
199 csum = btrfs_bio->csum; in __btrfs_lookup_bio_sums()
201 csum = (u8 *)dst; in __btrfs_lookup_bio_sums()
227 (u32 *)csum, nblocks); in __btrfs_lookup_bio_sums()
242 memset(csum, 0, csum_size); in __btrfs_lookup_bio_sums()
278 read_extent_buffer(path->nodes[0], csum, in __btrfs_lookup_bio_sums()
282 csum += count * csum_size; in __btrfs_lookup_bio_sums()
817 goto csum; in btrfs_csum_file_blocks()
[all …]
Dscrub.c81 u8 csum[BTRFS_CSUM_SIZE]; member
198 int have_csum, u8 *csum, u64 generation,
203 const u8 *csum, u64 generation,
225 u64 gen, int mirror_num, u8 *csum, int force,
812 u8 *csum; in scrub_handle_errored_block() local
843 csum = sblock_to_check->pagev[0]->csum; in scrub_handle_errored_block()
909 csum, generation, sctx->csum_size); in scrub_handle_errored_block()
1021 have_csum, csum, generation, in scrub_handle_errored_block()
1171 is_metadata, have_csum, csum, in scrub_handle_errored_block()
1305 int have_csum, u8 *csum, u64 generation, in scrub_recheck_block() argument
[all …]
Dcompression.c114 u32 csum; in check_compressed_csum() local
122 csum = ~(u32)0; in check_compressed_csum()
125 csum = btrfs_csum_data(kaddr, csum, PAGE_CACHE_SIZE); in check_compressed_csum()
126 btrfs_csum_final(csum, (char *)&csum); in check_compressed_csum()
129 if (csum != *cb_sum) { in check_compressed_csum()
132 btrfs_ino(inode), disk_start, csum, *cb_sum, in check_compressed_csum()
Dvolumes.h274 u8 *csum; member
Dextent_io.c2345 if (btrfs_failed_bio->csum) { in btrfs_create_repair_bio()
2350 btrfs_bio->csum = btrfs_bio->csum_inline; in btrfs_create_repair_bio()
2352 memcpy(btrfs_bio->csum, btrfs_failed_bio->csum + icsum, in btrfs_create_repair_bio()
2682 btrfs_bio->csum = NULL; in btrfs_bio_alloc()
2697 btrfs_bio->csum = NULL; in btrfs_bio_clone()
2713 btrfs_bio->csum = NULL; in btrfs_io_bio_alloc()
Dcheck-integrity.c1810 u8 csum[BTRFS_CSUM_SIZE]; in btrfsic_test_for_metadata() local
1829 btrfs_csum_final(crc, csum); in btrfsic_test_for_metadata()
1830 if (memcmp(csum, h->csum, state->csum_size)) in btrfsic_test_for_metadata()
Dinode.c2919 u32 csum = ~(u32)0; in __readpage_endio_check() local
2923 csum_expected = *(((u32 *)io_bio->csum) + icsum); in __readpage_endio_check()
2926 csum = btrfs_csum_data(kaddr + pgoff, csum, len); in __readpage_endio_check()
2927 btrfs_csum_final(csum, (char *)&csum); in __readpage_endio_check()
2928 if (csum != csum_expected) in __readpage_endio_check()
2937 btrfs_ino(inode), start, csum, csum_expected); in __readpage_endio_check()
7702 io_bio->csum = (u8 *)(((u32 *)orig_io_bio->csum) + file_offset); in btrfs_lookup_and_bind_dio_csum()
Dctree.h371 u8 csum[BTRFS_CSUM_SIZE]; member
452 u8 csum[BTRFS_CSUM_SIZE]; member
925 u8 csum; member
Ddisk-io.c3178 btrfs_csum_final(crc, sb->csum); in write_dev_supers()
/fs/efs/
Dsuper.c162 int csum; in module_exit() local
177 for(csum = 0; ui >= ((__be32 *) vh);) { in module_exit()
179 csum += be32_to_cpu(cs); in module_exit()
181 if (csum) { in module_exit()
/fs/jbd2/
Dcommit.c98 __u32 csum; in jbd2_commit_block_csum_set() local
107 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_commit_block_csum_set()
108 h->h_chksum[0] = cpu_to_be32(csum); in jbd2_commit_block_csum_set()
328 __u32 csum; in jbd2_descr_block_csum_set() local
336 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_descr_block_csum_set()
337 tail->t_checksum = cpu_to_be32(csum); in jbd2_descr_block_csum_set()
Drevoke.c641 __u32 csum; in jbd2_revoke_csum_set() local
649 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_revoke_csum_set()
650 tail->r_checksum = cpu_to_be32(csum); in jbd2_revoke_csum_set()
Djournal.c135 __u32 csum; in jbd2_superblock_csum() local
140 csum = jbd2_chksum(j, ~0, (char *)sb, sizeof(journal_superblock_t)); in jbd2_superblock_csum()
143 return cpu_to_be32(csum); in jbd2_superblock_csum()