Lines Matching refs:sums

521 	struct btrfs_ordered_sum *sums;  in btrfs_lookup_csums_range()  local
596 sums = kzalloc(btrfs_ordered_sum_size(fs_info, size), in btrfs_lookup_csums_range()
598 if (!sums) { in btrfs_lookup_csums_range()
603 sums->bytenr = start; in btrfs_lookup_csums_range()
604 sums->len = (int)size; in btrfs_lookup_csums_range()
611 sums->sums, in btrfs_lookup_csums_range()
616 list_add_tail(&sums->list, &tmplist); in btrfs_lookup_csums_range()
623 sums = list_entry(tmplist.next, struct btrfs_ordered_sum, list); in btrfs_lookup_csums_range()
624 list_del(&sums->list); in btrfs_lookup_csums_range()
625 kfree(sums); in btrfs_lookup_csums_range()
649 struct btrfs_ordered_sum *sums; in btrfs_csum_one_bio() local
663 sums = kvzalloc(btrfs_ordered_sum_size(fs_info, bio->bi_iter.bi_size), in btrfs_csum_one_bio()
667 if (!sums) in btrfs_csum_one_bio()
670 sums->len = bio->bi_iter.bi_size; in btrfs_csum_one_bio()
671 INIT_LIST_HEAD(&sums->list); in btrfs_csum_one_bio()
673 sums->bytenr = bio->bi_iter.bi_sector << 9; in btrfs_csum_one_bio()
693 kvfree(sums); in btrfs_csum_one_bio()
708 sums->len = this_sum_bytes; in btrfs_csum_one_bio()
710 btrfs_add_ordered_sum(ordered, sums); in btrfs_csum_one_bio()
716 sums = kvzalloc(btrfs_ordered_sum_size(fs_info, in btrfs_csum_one_bio()
719 BUG_ON(!sums); /* -ENOMEM */ in btrfs_csum_one_bio()
720 sums->len = bytes_left; in btrfs_csum_one_bio()
724 sums->bytenr = (bio->bi_iter.bi_sector << 9) in btrfs_csum_one_bio()
733 sums->sums + index); in btrfs_csum_one_bio()
743 btrfs_add_ordered_sum(ordered, sums); in btrfs_csum_one_bio()
986 struct btrfs_ordered_sum *sums) in btrfs_csum_file_blocks() argument
1011 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
1097 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1162 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1187 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1191 write_extent_buffer(leaf, sums->sums + index, (unsigned long)item, in btrfs_csum_file_blocks()
1199 if (total_bytes < sums->len) { in btrfs_csum_file_blocks()