Lines Matching refs:csum_end
316 u64 csum_end; in btrfs_lookup_csums_range() local
373 csum_end = key.offset + (size / csum_size) * fs_info->sectorsize; in btrfs_lookup_csums_range()
374 if (csum_end <= start) { in btrfs_lookup_csums_range()
379 csum_end = min(csum_end, end + 1); in btrfs_lookup_csums_range()
382 while (start < csum_end) { in btrfs_lookup_csums_range()
383 size = min_t(size_t, csum_end - start, in btrfs_lookup_csums_range()
537 u64 csum_end; in truncate_one_csum() local
542 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in truncate_one_csum()
543 csum_end <<= fs_info->sb->s_blocksize_bits; in truncate_one_csum()
544 csum_end += key->offset; in truncate_one_csum()
546 if (key->offset < bytenr && csum_end <= end_byte) { in truncate_one_csum()
556 } else if (key->offset >= bytenr && csum_end > end_byte && in truncate_one_csum()
564 u32 new_size = (csum_end - end_byte) >> blocksize_bits; in truncate_one_csum()
587 u64 csum_end; in btrfs_del_csums() local
627 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in btrfs_del_csums()
628 csum_end <<= blocksize_bits; in btrfs_del_csums()
629 csum_end += key.offset; in btrfs_del_csums()
632 if (csum_end <= bytenr) in btrfs_del_csums()
636 if (key.offset >= bytenr && csum_end <= end_byte) { in btrfs_del_csums()
668 } else if (key.offset < bytenr && csum_end > end_byte) { in btrfs_del_csums()