Searched refs:sums (Results 1 – 9 of 9) sorted by relevance
/fs/btrfs/ |
D | file-item.c | 503 struct btrfs_ordered_sum *sums; in btrfs_lookup_csums_range() local 577 sums = kzalloc(btrfs_ordered_sum_size(fs_info, size), in btrfs_lookup_csums_range() 579 if (!sums) { in btrfs_lookup_csums_range() 584 sums->bytenr = start; in btrfs_lookup_csums_range() 585 sums->len = (int)size; in btrfs_lookup_csums_range() 592 sums->sums, in btrfs_lookup_csums_range() 597 list_add_tail(&sums->list, &tmplist); in btrfs_lookup_csums_range() 604 sums = list_entry(tmplist.next, struct btrfs_ordered_sum, list); in btrfs_lookup_csums_range() 605 list_del(&sums->list); in btrfs_lookup_csums_range() 606 kfree(sums); in btrfs_lookup_csums_range() [all …]
|
D | tree-log.c | 846 struct btrfs_ordered_sum *sums; in replay_one_extent() local 847 sums = list_entry(ordered_sums.next, in replay_one_extent() 853 sums->bytenr, in replay_one_extent() 854 sums->len); in replay_one_extent() 857 fs_info->csum_root, sums); in replay_one_extent() 858 list_del(&sums->list); in replay_one_extent() 859 kfree(sums); in replay_one_extent() 4056 struct btrfs_ordered_sum *sums) in log_csums() argument 4058 const u64 lock_end = sums->bytenr + sums->len - 1; in log_csums() 4068 return btrfs_csum_file_blocks(trans, log_root, sums); in log_csums() [all …]
|
D | compression.c | 156 u8 *cb_sum = cb->sums; in check_compressed_csum() 690 u8 *sums; in btrfs_submit_compressed_read() local 714 sums = cb->sums; in btrfs_submit_compressed_read() 795 ret = btrfs_lookup_bio_sums(inode, comp_bio, sums); in btrfs_submit_compressed_read() 800 sums += fs_info->csum_size * nr_sectors; in btrfs_submit_compressed_read() 821 ret = btrfs_lookup_bio_sums(inode, comp_bio, sums); in btrfs_submit_compressed_read()
|
D | ordered-data.h | 26 u8 sums[]; member
|
D | compression.h | 66 u8 sums[]; member
|
D | relocation.c | 4348 struct btrfs_ordered_sum *sums; in btrfs_reloc_clone_csums() local 4365 sums = list_entry(list.next, struct btrfs_ordered_sum, list); in btrfs_reloc_clone_csums() 4366 list_del_init(&sums->list); in btrfs_reloc_clone_csums() 4380 new_bytenr = ordered->disk_bytenr + sums->bytenr - disk_bytenr; in btrfs_reloc_clone_csums() 4381 sums->bytenr = new_bytenr; in btrfs_reloc_clone_csums() 4383 btrfs_add_ordered_sum(ordered, sums); in btrfs_reloc_clone_csums()
|
D | inode.c | 1536 struct btrfs_ordered_sum *sums; in csum_exist_in_range() local 1545 sums = list_entry(list.next, struct btrfs_ordered_sum, list); in csum_exist_in_range() 1546 list_del(&sums->list); in csum_exist_in_range() 1547 kfree(sums); in csum_exist_in_range()
|
D | ctree.h | 3157 struct btrfs_ordered_sum *sums);
|
D | scrub.c | 2525 memcpy(csum, sum->sums + index * sctx->fs_info->csum_size, in scrub_find_csum()
|