Lines Matching full:csum

260  * Return 0 for the range [disk_bytenr, disk_bytenr + sectorsize) has no csum
281 /* Check if the current csum item covers disk_bytenr */ in search_csum_tree()
364 * Lookup the checksum for the read bio in csum tree.
371 * btrfs_bio(bio)->csum instead.
386 u8 *csum; in btrfs_lookup_bio_sums() local
399 * - All our csums should only be in csum tree in btrfs_lookup_bio_sums()
416 bbio->csum = kmalloc_array(nblocks, csum_size, GFP_NOFS); in btrfs_lookup_bio_sums()
417 if (!bbio->csum) { in btrfs_lookup_bio_sums()
422 bbio->csum = bbio->csum_inline; in btrfs_lookup_bio_sums()
424 csum = bbio->csum; in btrfs_lookup_bio_sums()
426 csum = dst; in btrfs_lookup_bio_sums()
431 * kick the readahead for csum tree. in btrfs_lookup_bio_sums()
440 * between reading the free space cache and updating the csum tree. in btrfs_lookup_bio_sums()
465 csum_dst = csum + sector_offset * csum_size; in btrfs_lookup_bio_sums()
477 * We didn't find a csum for this range. We need to make sure in btrfs_lookup_bio_sums()
483 * copying is in fact NODATASUM. If we don't find a csum we in btrfs_lookup_bio_sums()
503 "csum hole found for disk bytenr range [%llu, %llu)", in btrfs_lookup_bio_sums()
749 * helper function for csum removal, this expects the
750 * key to describe the csum pointed to by the path, and it expects
751 * the csum to overlap the range [bytenr, len]
753 * The csum should not be entirely contained in the range and the
754 * range should not be entirely contained in the csum.
779 * [csum ] in truncate_one_csum()
790 * [csum ] in truncate_one_csum()
791 * we need to truncate from the beginning of the csum in truncate_one_csum()
806 * deletes the csum items from the csum tree for a given
859 /* this csum ends before we start, we're done */ in btrfs_del_csums()
868 * Check how many csum items preceding this one in this in btrfs_del_csums()
902 * [csum ] in btrfs_del_csums()
904 * Our bytes are in the middle of the csum, in btrfs_del_csums()
908 * csum could change, get removed, extended etc. in btrfs_del_csums()
910 * The trick here is the max size of a csum item leaves in btrfs_del_csums()
915 * a nicely formed csum item that we can neatly in btrfs_del_csums()
1041 /* We didn't find a csum item, insert one. */ in btrfs_csum_file_blocks()
1153 goto csum; in btrfs_csum_file_blocks()
1180 csum: in btrfs_csum_file_blocks()