Home
last modified time | relevance | path

Searched refs:found_key (Results 1 – 17 of 17) sorted by relevance

/linux/fs/btrfs/
H A Dfree-space-tree.c204 struct btrfs_key key, found_key; in btrfs_convert_free_space_to_bitmaps() local
238 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in btrfs_convert_free_space_to_bitmaps()
240 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in btrfs_convert_free_space_to_bitmaps()
241 ASSERT(found_key.objectid == block_group->start); in btrfs_convert_free_space_to_bitmaps()
242 ASSERT(found_key.offset == block_group->length); in btrfs_convert_free_space_to_bitmaps()
245 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in btrfs_convert_free_space_to_bitmaps()
248 ASSERT(found_key.objectid >= start); in btrfs_convert_free_space_to_bitmaps()
249 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_bitmaps()
250 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_bitmaps()
252 first = div_u64(found_key.objectid - start, in btrfs_convert_free_space_to_bitmaps()
[all …]
H A Dexport.c162 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 Dfile-item.c207 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()
1074 struct btrfs_key found_key; in find_next_csum_offset() local
1089 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in find_next_csum_offset()
1091 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset()
1092 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset()
1095 *next_offset = found_key.offset; in find_next_csum_offset()
1106 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
[all...]
H A Dbackref.c1009 struct btrfs_key found_key; in add_inline_refs()
1032 btrfs_item_key_to_cpu(leaf, &found_key, slot); in add_inline_refs()
1037 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in add_inline_refs()
1045 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in add_inline_refs()
1046 *info_level = found_key.offset; in add_inline_refs()
2046 struct btrfs_key found_key; in btrfs_is_data_extent_shared()
2081 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_find_one_extref()
2090 if (found_key.objectid != inode_objectid) in btrfs_find_one_extref()
2092 if (found_key.type != BTRFS_INODE_EXTREF_KEY) in btrfs_find_one_extref()
2100 *found_off = found_key in btrfs_find_one_extref()
1014 struct btrfs_key found_key; add_inline_refs() local
2056 struct btrfs_key found_key; btrfs_find_one_extref() local
2141 struct btrfs_key found_key; btrfs_ref_to_path() local
2203 extent_from_logical(struct btrfs_fs_info * fs_info,u64 logical,struct btrfs_path * path,struct btrfs_key * found_key,u64 * flags_ret) extent_from_logical() argument
2567 struct btrfs_key found_key; iterate_inodes_from_logical() local
2607 struct btrfs_key found_key; iterate_inode_refs() local
[all...]
H A Droot-tree.c71 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 Dsend.c977 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 in get_inode_path()
1969 struct btrfs_key found_key; get_first_ref() local
2895 struct btrfs_key found_key; did_create_dir() local
3149 struct btrfs_key found_key; can_rmdir() local
4794 struct btrfs_key found_key; process_all_refs() local
5069 struct btrfs_key found_key; process_all_new_xattrs() local
6143 struct btrfs_key found_key; is_extent_unchanged() local
6498 struct btrfs_key found_key; process_all_extents() local
[all...]
H A Drelocation.c4419 struct btrfs_key key, found_key; in move_existing_remaps()
4474 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in create_remap_tree_entries()
4476 if (found_key.objectid >= bg->start + bg->length) in create_remap_tree_entries()
4479 if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in create_remap_tree_entries()
4481 space_runs[num_space_runs - 1].end == found_key.objectid) { in create_remap_tree_entries()
4483 found_key.objectid + found_key.offset; in create_remap_tree_entries()
4487 space_runs[num_space_runs].start = found_key.objectid; in create_remap_tree_entries()
4489 found_key.objectid + found_key in create_remap_tree_entries()
4427 struct btrfs_key key, found_key; create_remap_tree_entries() local
4606 struct btrfs_key key, found_key; find_next_identity_remap() local
5126 struct btrfs_key key, found_key; btrfs_translate_remap() local
6041 struct btrfs_key key, found_key; btrfs_remove_extent_from_remap_tree() local
[all...]
H A Dinode.c220 struct btrfs_key found_key = { 0 }; in print_data_reloc_error()
253 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error()
268 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error()
296 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
297 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error()
301 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error()
2051 struct btrfs_key found_key; in nocow_one_range()
2070 btrfs_item_key_to_cpu(leaf, &found_key, in nocow_one_range()
2072 if (found_key.objectid == ino && in nocow_one_range()
2073 found_key in nocow_one_range()
221 struct btrfs_key found_key = { 0 }; print_data_reloc_error() local
2161 struct btrfs_key found_key; run_delalloc_nocow() local
3717 struct btrfs_key key, found_key; btrfs_orphan_cleanup() local
3923 struct btrfs_key found_key; acls_after_inode_item() local
6162 struct btrfs_key key, found_key; btrfs_set_inode_index_count() local
6311 struct btrfs_key found_key; btrfs_real_readdir() local
7228 struct btrfs_key found_key; btrfs_get_extent() local
[all...]
H A Dtree-log.c2078 struct btrfs_key found_key; in delete_conflicting_dir_entry() local
2080 btrfs_dir_item_key_to_cpu(wc->subvol_path->nodes[0], dst_di, &found_key); in delete_conflicting_dir_entry()
2082 if (found_key.objectid == log_key->objectid && in delete_conflicting_dir_entry()
2083 found_key.type == log_key->type && in delete_conflicting_dir_entry()
2084 found_key.offset == log_key->offset && in delete_conflicting_dir_entry()
2657 struct btrfs_key found_key; in replay_dir_deletes() local
2728 btrfs_item_key_to_cpu(wc->subvol_path->nodes[0], &found_key, in replay_dir_deletes()
2730 if (found_key.objectid != dirid || in replay_dir_deletes()
2731 found_key.type != dir_key.type) { in replay_dir_deletes()
2736 if (found_key in replay_dir_deletes()
4553 struct btrfs_key found_key; drop_inode_items() local
5930 struct btrfs_key found_key; log_new_dir_dentries() local
7358 struct btrfs_key found_key; log_new_ancestors() local
7489 struct btrfs_key found_key; log_all_new_ancestors() local
7725 struct btrfs_key found_key; btrfs_recover_log_trees() local
[all...]
H A Dqgroup.c424 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 in btrfs_read_qgroup_config()
1008 struct btrfs_key found_key; btrfs_quota_enable() local
[all...]
H A Dscrub.c588 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()
2658 struct btrfs_key found_key;
2698 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2700 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
2703 if (found_key in scrub_enumerate_chunks()
2672 struct btrfs_key found_key; scrub_enumerate_chunks() local
[all...]
H A Dvolumes.c1958 struct btrfs_key found_key; in btrfs_free_dev_extent()
1977 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent()
1980 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1982 key = found_key; in btrfs_free_dev_extent()
2024 struct btrfs_key found_key; in find_next_devid()
2051 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid()
2053 *devid_ret = found_key.offset + 1; in find_next_devid()
3632 struct btrfs_key found_key; in btrfs_relocate_sys_chunks()
3676 btrfs_item_key_to_cpu(leaf, &found_key, pat in btrfs_relocate_sys_chunks()
1957 struct btrfs_key found_key; btrfs_free_dev_extent() local
2023 struct btrfs_key found_key; find_next_devid() local
3624 struct btrfs_key found_key; btrfs_relocate_sys_chunks() local
4319 struct btrfs_key found_key; __btrfs_balance() local
7771 struct btrfs_key found_key; btrfs_read_chunk_tree() local
[all...]
H A Dtree-checker.c2554 struct btrfs_key found_key;
2588 btrfs_node_key_to_cpu(eb, &found_key, 0);
2590 btrfs_item_key_to_cpu(eb, &found_key, 0);
2592 ret = btrfs_comp_cpu_keys(&check->first_key, &found_key);
2599 found_key.objectid, found_key.type,
2600 found_key.offset);
2307 struct btrfs_key found_key; btrfs_verify_level_key() local
H A Dblock-group.c592 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()
2195 struct btrfs_key found_key;
2202 btrfs_for_each_slot(root, key, &found_key, path, ret) { in btrfs_rmap_block()
2203 if (found_key in btrfs_rmap_block()
2157 struct btrfs_key found_key; find_first_block_group() local
[all...]
H A Dzoned.c1235 struct btrfs_key found_key; in calculate_alloc_pointer() local
1287 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer()
1289 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer()
1290 length = found_key.offset; in calculate_alloc_pointer()
1294 if (unlikely(!(found_key.objectid >= cache->start && in calculate_alloc_pointer()
1295 found_key.objectid + length <= bg_end))) { in calculate_alloc_pointer()
1298 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
H A Ddisk-io.c423 struct btrfs_key found_key; in btrfs_validate_extent_buffer()
426 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer()
428 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer()
429 if (unlikely(btrfs_comp_cpu_keys(expect_key, &found_key))) { in btrfs_validate_extent_buffer()
435 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer()
436 found_key.offset); in btrfs_validate_extent_buffer()
4904 struct btrfs_key found_key; in btrfs_cleanup_transaction()
4927 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid() local
4928 root->free_objectid = max_t(u64, found_key in btrfs_init_root_free_objectid()
420 struct btrfs_key found_key; btrfs_validate_extent_buffer() local
[all...]
H A Dfree-space-cache.c1169 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()