Lines Matching full:csum
160 u8 *csum; in __btrfs_lookup_bio_sums() local
184 btrfs_bio->csum = btrfs_bio->csum_allocated; in __btrfs_lookup_bio_sums()
187 btrfs_bio->csum = btrfs_bio->csum_inline; in __btrfs_lookup_bio_sums()
189 csum = btrfs_bio->csum; in __btrfs_lookup_bio_sums()
191 csum = (u8 *)dst; in __btrfs_lookup_bio_sums()
201 * between reading the free space cache and updating the csum tree. in __btrfs_lookup_bio_sums()
220 (u32 *)csum, nblocks); in __btrfs_lookup_bio_sums()
235 memset(csum, 0, csum_size); in __btrfs_lookup_bio_sums()
243 "no csum found for inode %llu start %llu", in __btrfs_lookup_bio_sums()
271 read_extent_buffer(path->nodes[0], csum, in __btrfs_lookup_bio_sums()
275 csum += count * csum_size; in __btrfs_lookup_bio_sums()
520 * helper function for csum removal, this expects the
521 * key to describe the csum pointed to by the path, and it expects
522 * the csum to overlap the range [bytenr, len]
524 * The csum should not be entirely contained in the range and the
525 * range should not be entirely contained in the csum.
550 * [csum ] in truncate_one_csum()
561 * [csum ] in truncate_one_csum()
562 * we need to truncate from the beginning of the csum in truncate_one_csum()
577 * deletes the csum items from the csum tree for a given
630 /* this csum ends before we start, we're done */ in btrfs_del_csums()
639 * Check how many csum items preceding this one in this in btrfs_del_csums()
673 * [csum ] in btrfs_del_csums()
675 * Our bytes are in the middle of the csum, in btrfs_del_csums()
679 * csum could change, get removed, extended etc. in btrfs_del_csums()
681 * The trick here is the max size of a csum item leaves in btrfs_del_csums()
686 * a nicely formed csum item that we can neatly in btrfs_del_csums()
784 /* we didn't find a csum item, insert one */ in btrfs_csum_file_blocks()
809 * enough yet to put our csum in. Grow it in btrfs_csum_file_blocks()
863 goto csum; in btrfs_csum_file_blocks()
892 csum: in btrfs_csum_file_blocks()