| /linux/fs/btrfs/ |
| H A D | export.c | 162 struct btrfs_key found_key; in btrfs_get_parent() local 200 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 201 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 206 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 211 key.objectid = found_key.offset; in btrfs_get_parent() 215 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 217 found_key.offset, 0); in btrfs_get_parent()
|
| H A D | file-item.c | 207 struct btrfs_key found_key; in btrfs_lookup_csum() local 226 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 227 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 230 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 1067 struct btrfs_key found_key; in find_next_csum_offset() local 1082 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in find_next_csum_offset() 1084 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset() 1085 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset() 1088 *next_offset = found_key.offset; in find_next_csum_offset() 1099 struct btrfs_key found_key; in btrfs_csum_file_blocks() local [all …]
|
| H A D | backref.c | 1014 struct btrfs_key found_key; in add_inline_refs() local 1037 btrfs_item_key_to_cpu(leaf, &found_key, slot); in add_inline_refs() 1042 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in add_inline_refs() 1050 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in add_inline_refs() 1051 *info_level = found_key.offset; in add_inline_refs() 2049 struct btrfs_key found_key; in btrfs_find_one_extref() local 2084 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_find_one_extref() 2093 if (found_key.objectid != inode_objectid) in btrfs_find_one_extref() 2095 if (found_key.type != BTRFS_INODE_EXTREF_KEY) in btrfs_find_one_extref() 2103 *found_off = found_key.offset; in btrfs_find_one_extref() [all …]
|
| H A D | root-tree.c | 71 struct btrfs_key found_key; in btrfs_find_root() local 101 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 102 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 103 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root() 111 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
|
| H A D | send.c | 977 struct btrfs_key *found_key, bool resolve, in iterate_inode_ref() argument 1007 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1021 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1025 dir = found_key->offset; in iterate_inode_ref() 1058 BTRFS_KEY_FMT_VALUE(found_key)); in iterate_inode_ref() 1224 struct btrfs_key key, found_key; in get_inode_path() local 1243 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1244 if (found_key.objectid != ino || in get_inode_path() 1245 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path() 1246 found_key.type != BTRFS_INODE_EXTREF_KEY)) in get_inode_path() [all …]
|
| H A D | relocation.c | 4426 struct btrfs_key key, found_key; in create_remap_tree_entries() local 4481 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in create_remap_tree_entries() 4483 if (found_key.objectid >= bg->start + bg->length) in create_remap_tree_entries() 4486 if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in create_remap_tree_entries() 4488 space_runs[num_space_runs - 1].end == found_key.objectid) { in create_remap_tree_entries() 4490 found_key.objectid + found_key.offset; in create_remap_tree_entries() 4494 space_runs[num_space_runs].start = found_key.objectid; in create_remap_tree_entries() 4496 found_key.objectid + found_key.offset; in create_remap_tree_entries() 4500 } else if (found_key.type == BTRFS_FREE_SPACE_BITMAP_KEY) { in create_remap_tree_entries() 4520 found_key.objectid, space_runs, in create_remap_tree_entries() [all …]
|
| H A D | inode.c | 221 struct btrfs_key found_key = { 0 }; in print_data_reloc_error() local 254 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error() 269 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error() 297 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 298 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error() 302 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error() 2139 struct btrfs_key found_key; in run_delalloc_nocow() local 2158 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow() 2160 if (found_key.objectid == ino && in run_delalloc_nocow() 2161 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow() [all …]
|
| H A D | tree-log.c | 2071 struct btrfs_key found_key; in delete_conflicting_dir_entry() local 2073 btrfs_dir_item_key_to_cpu(wc->subvol_path->nodes[0], dst_di, &found_key); in delete_conflicting_dir_entry() 2075 if (found_key.objectid == log_key->objectid && in delete_conflicting_dir_entry() 2076 found_key.type == log_key->type && in delete_conflicting_dir_entry() 2077 found_key.offset == log_key->offset && in delete_conflicting_dir_entry() 2650 struct btrfs_key found_key; in replay_dir_deletes() local 2721 btrfs_item_key_to_cpu(wc->subvol_path->nodes[0], &found_key, in replay_dir_deletes() 2723 if (found_key.objectid != dirid || in replay_dir_deletes() 2724 found_key.type != dir_key.type) { in replay_dir_deletes() 2729 if (found_key.offset > range_end) in replay_dir_deletes() [all …]
|
| H A D | qgroup.c | 424 struct btrfs_key found_key; in btrfs_read_qgroup_config() local 463 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 465 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config() 486 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config() 487 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 490 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 491 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config() 492 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) in btrfs_read_qgroup_config() 503 qgroup = add_qgroup_rb(fs_info, prealloc, found_key.offset); in btrfs_read_qgroup_config() 528 switch (found_key.type) { in btrfs_read_qgroup_config() [all …]
|
| H A D | scrub.c | 588 struct btrfs_key found_key; in scrub_print_common_warning() local 611 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_common_warning() 616 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning() 628 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in scrub_print_common_warning() 651 ctx.bytenr = found_key.objectid; in scrub_print_common_warning() 652 ctx.extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_common_warning() 2672 struct btrfs_key found_key; in scrub_enumerate_chunks() local 2712 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks() 2714 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks() 2717 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks() [all …]
|
| H A D | volumes.c | 1957 struct btrfs_key found_key; in btrfs_free_dev_extent() local 1976 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent() 1979 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent() 1981 key = found_key; in btrfs_free_dev_extent() 2023 struct btrfs_key found_key; in find_next_devid() local 2050 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid() 2052 *devid_ret = found_key.offset + 1; in find_next_devid() 3624 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local 3668 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_relocate_sys_chunks() 3676 ret = btrfs_relocate_chunk(fs_info, found_key.offset, in btrfs_relocate_sys_chunks() [all …]
|
| H A D | block-group.c | 592 struct btrfs_key *found_key, in sample_block_group_extent_item() argument 622 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item() 624 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item() 625 found_key->objectid >= block_group->start && in sample_block_group_extent_item() 626 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item() 630 if (found_key->objectid >= search_end) { in sample_block_group_extent_item() 2141 struct btrfs_key found_key; in find_first_block_group() local 2143 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group() 2144 if (found_key.objectid >= key->objectid && in find_first_block_group() 2145 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group() [all …]
|
| H A D | zoned.c | 1233 struct btrfs_key found_key; in calculate_alloc_pointer() local 1278 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer() 1280 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer() 1281 length = found_key.offset; in calculate_alloc_pointer() 1285 if (unlikely(!(found_key.objectid >= cache->start && in calculate_alloc_pointer() 1286 found_key.objectid + length <= bg_end))) { in calculate_alloc_pointer() 1289 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
|
| H A D | disk-io.c | 420 struct btrfs_key found_key; in btrfs_validate_extent_buffer() local 423 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer() 425 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer() 426 if (unlikely(btrfs_comp_cpu_keys(expect_key, &found_key))) { in btrfs_validate_extent_buffer() 432 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer() 433 found_key.offset); in btrfs_validate_extent_buffer() 4902 struct btrfs_key found_key; in btrfs_init_root_free_objectid() local 4925 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid() 4926 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
|
| H A D | free-space-cache.c | 1169 struct btrfs_key found_key; in update_cache_item() local 1172 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item() 1173 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item() 1174 found_key.offset != offset) { in update_cache_item()
|