Home
last modified time | relevance | path

Searched refs:csum_root (Results 1 – 9 of 9) sorted by relevance

/linux/fs/btrfs/
H A Dfile-item.c281 struct btrfs_root *csum_root; in search_csum_tree() local
310 csum_root = btrfs_csum_root(fs_info, disk_bytenr); in search_csum_tree()
311 if (unlikely(!csum_root)) { in search_csum_tree()
318 item = btrfs_lookup_csum(NULL, csum_root, path, disk_bytenr, 0); in search_csum_tree()
H A Dtree-log.c955 struct btrfs_root *csum_root; in replay_one_extent() local
958 csum_root = btrfs_csum_root(fs_info, sums->logical); in replay_one_extent()
959 if (unlikely(!csum_root)) { in replay_one_extent()
967 ret = btrfs_del_csums(trans, csum_root, sums->logical, in replay_one_extent()
978 ret = btrfs_insert_data_csums(trans, csum_root, sums); in replay_one_extent()
4811 struct btrfs_root *csum_root; in copy_items() local
4880 csum_root = btrfs_csum_root(trans->fs_info, disk_bytenr); in copy_items()
4881 if (unlikely(!csum_root)) { in copy_items()
4889 ret = btrfs_lookup_csums_list(csum_root, disk_bytenr, in copy_items()
4999 struct btrfs_root *csum_root; in log_extent_csums() local
[all …]
H A Draid56.c2278 struct btrfs_root *csum_root; in fill_data_csums() local
2311 csum_root = btrfs_csum_root(fs_info, rbio->bioc->full_stripe_logical); in fill_data_csums()
2312 if (unlikely(!csum_root)) { in fill_data_csums()
2320 ret = btrfs_lookup_csums_bitmap(csum_root, NULL, start, start + len - 1, in fill_data_csums()
H A Dextent-tree.c1974 struct btrfs_root *csum_root; in cleanup_ref_head() local
1976 csum_root = btrfs_csum_root(fs_info, head->bytenr); in cleanup_ref_head()
1977 if (unlikely(!csum_root)) { in cleanup_ref_head()
1983 ret = btrfs_del_csums(trans, csum_root, head->bytenr, in cleanup_ref_head()
3158 struct btrfs_root *csum_root; in do_free_extent_accounting() local
3160 csum_root = btrfs_csum_root(trans->fs_info, bytenr); in do_free_extent_accounting()
3161 if (unlikely(!csum_root)) { in do_free_extent_accounting()
3170 ret = btrfs_del_csums(trans, csum_root, bytenr, num_bytes); in do_free_extent_accounting()
H A Ddisk-io.c1654 struct btrfs_root *csum_root = btrfs_csum_root(info, 0); in backup_super_roots() local
1660 if (unlikely(!csum_root)) { in backup_super_roots()
1672 btrfs_set_backup_csum_root(root_backup, csum_root->node->start); in backup_super_roots()
1674 btrfs_header_generation(csum_root->node)); in backup_super_roots()
1676 btrfs_header_level(csum_root->node)); in backup_super_roots()
H A Dscrub.c1629 struct btrfs_root *csum_root = btrfs_csum_root(fs_info, bg->start); in scrub_find_fill_first_stripe() local
1639 if (unlikely(!extent_root || !csum_root)) { in scrub_find_fill_first_stripe()
1719 ret = btrfs_lookup_csums_bitmap(csum_root, csum_path, in scrub_find_fill_first_stripe()
H A Dinode.c1801 struct btrfs_root *csum_root; in can_nocow_file_extent() local
1884 csum_root = btrfs_csum_root(root->fs_info, io_start); in can_nocow_file_extent()
1885 if (unlikely(!csum_root)) { in can_nocow_file_extent()
1892 ret = btrfs_lookup_csums_list(csum_root, io_start, in can_nocow_file_extent()
2732 struct btrfs_root *csum_root = NULL; in add_pending_csums() local
2736 if (!csum_root) { in add_pending_csums()
2737 csum_root = btrfs_csum_root(trans->fs_info, in add_pending_csums()
2739 if (unlikely(!csum_root)) { in add_pending_csums()
2747 ret = btrfs_insert_data_csums(trans, csum_root, sum); in add_pending_csums()
H A Dioctl.c5190 struct btrfs_root *csum_root; in copy_csums_to_user() local
5196 csum_root = btrfs_csum_root(fs_info, disk_bytenr); in copy_csums_to_user()
5197 if (unlikely(!csum_root)) { in copy_csums_to_user()
5202 ret = btrfs_lookup_csums_list(csum_root, disk_bytenr, in copy_csums_to_user()
H A Drelocation.c5810 struct btrfs_root *csum_root = btrfs_csum_root(fs_info, disk_bytenr); in btrfs_reloc_clone_csums() local
5814 if (unlikely(!csum_root)) { in btrfs_reloc_clone_csums()
5822 ret = btrfs_lookup_csums_list(csum_root, disk_bytenr, in btrfs_reloc_clone_csums()