Lines Matching full:csum
251 * btrfs_io_bio(bio)->csum instead.
265 u8 *csum; in btrfs_lookup_bio_sums() local
284 btrfs_bio->csum = kmalloc_array(nblocks, csum_size, in btrfs_lookup_bio_sums()
286 if (!btrfs_bio->csum) { in btrfs_lookup_bio_sums()
291 btrfs_bio->csum = btrfs_bio->csum_inline; in btrfs_lookup_bio_sums()
293 csum = btrfs_bio->csum; in btrfs_lookup_bio_sums()
295 csum = dst; in btrfs_lookup_bio_sums()
305 * between reading the free space cache and updating the csum tree. in btrfs_lookup_bio_sums()
322 disk_bytenr, csum, nblocks); in btrfs_lookup_bio_sums()
337 memset(csum, 0, csum_size); in btrfs_lookup_bio_sums()
345 "no csum found for inode %llu start %llu", in btrfs_lookup_bio_sums()
373 read_extent_buffer(path->nodes[0], csum, in btrfs_lookup_bio_sums()
377 csum += count * csum_size; in btrfs_lookup_bio_sums()
624 * helper function for csum removal, this expects the
625 * key to describe the csum pointed to by the path, and it expects
626 * the csum to overlap the range [bytenr, len]
628 * The csum should not be entirely contained in the range and the
629 * range should not be entirely contained in the csum.
654 * [csum ] in truncate_one_csum()
665 * [csum ] in truncate_one_csum()
666 * we need to truncate from the beginning of the csum in truncate_one_csum()
681 * deletes the csum items from the csum tree for a given
734 /* this csum ends before we start, we're done */ in btrfs_del_csums()
743 * Check how many csum items preceding this one in this in btrfs_del_csums()
777 * [csum ] in btrfs_del_csums()
779 * Our bytes are in the middle of the csum, in btrfs_del_csums()
783 * csum could change, get removed, extended etc. in btrfs_del_csums()
785 * The trick here is the max size of a csum item leaves in btrfs_del_csums()
790 * a nicely formed csum item that we can neatly in btrfs_del_csums()
888 /* we didn't find a csum item, insert one */ in btrfs_csum_file_blocks()
974 goto csum; in btrfs_csum_file_blocks()
1003 csum: in btrfs_csum_file_blocks()