Lines Matching refs:csum_end
280 u64 csum_end; in btrfs_lookup_csums_range() local
330 csum_end = key.offset + (size / csum_size) * root->sectorsize; in btrfs_lookup_csums_range()
331 if (csum_end <= start) { in btrfs_lookup_csums_range()
336 csum_end = min(csum_end, end + 1); in btrfs_lookup_csums_range()
339 while (start < csum_end) { in btrfs_lookup_csums_range()
340 size = min_t(size_t, csum_end - start, in btrfs_lookup_csums_range()
478 u64 csum_end; in truncate_one_csum() local
484 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in truncate_one_csum()
485 csum_end <<= root->fs_info->sb->s_blocksize_bits; in truncate_one_csum()
486 csum_end += key->offset; in truncate_one_csum()
488 if (key->offset < bytenr && csum_end <= end_byte) { in truncate_one_csum()
499 } else if (key->offset >= bytenr && csum_end > end_byte && in truncate_one_csum()
507 u32 new_size = (csum_end - end_byte) >> blocksize_bits; in truncate_one_csum()
532 u64 csum_end; in btrfs_del_csums() local
571 csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; in btrfs_del_csums()
572 csum_end <<= blocksize_bits; in btrfs_del_csums()
573 csum_end += key.offset; in btrfs_del_csums()
576 if (csum_end <= bytenr) in btrfs_del_csums()
580 if (key.offset >= bytenr && csum_end <= end_byte) { in btrfs_del_csums()
585 } else if (key.offset < bytenr && csum_end > end_byte) { in btrfs_del_csums()