Home
last modified time | relevance | path

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

12

/openbmc/u-boot/fs/btrfs/
H A Dsubvolume.c83 struct btrfs_key key, *found_key; in list_subvols() local
96 found_key = btrfs_path_leaf_key(&path); in list_subvols()
97 if (btrfs_comp_keys_type(&key, found_key)) in list_subvols()
103 printf("ID %llu parent %llu name ", found_key->offset, tree); in list_subvols()
104 if (nameptr && !get_subvol_name(found_key->offset, nameptr, in list_subvols()
112 list_subvols(found_key->offset, nameptr, max_name_len, in list_subvols()
H A Dchunk-map.c147 struct btrfs_key key, *found_key; in btrfs_read_chunk_tree() local
159 found_key = btrfs_path_leaf_key(&path); in btrfs_read_chunk_tree()
160 if (btrfs_comp_keys_type(&key, found_key)) in btrfs_read_chunk_tree()
165 if (add_chunk_mapping(found_key, chunk)) { in btrfs_read_chunk_tree()
H A Ddir-item.c93 struct btrfs_key key, *found_key; in btrfs_readdir() local
105 found_key = btrfs_path_leaf_key(&path); in btrfs_readdir()
106 if (btrfs_comp_keys_type(&key, found_key)) in btrfs_readdir()
/openbmc/linux/fs/btrfs/
H A Dfree-space-tree.c212 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
258 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
262 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
350 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
396 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
397 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
404 found_key.offset); in convert_free_space_to_extents()
1405 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1453 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
[all …]
H A Dinode-item.c410 struct btrfs_key found_key; in btrfs_lookup_inode() local
419 found_key.type == location->type) { in btrfs_lookup_inode()
468 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
535 found_type = found_key.type; in btrfs_truncate_inode_items()
537 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
543 item_end = found_key.offset; in btrfs_truncate_inode_items()
555 found_key.offset, extent_type, in btrfs_truncate_inode_items()
564 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
579 clear_start = found_key.offset; in btrfs_truncate_inode_items()
585 found_key.offset, in btrfs_truncate_inode_items()
[all …]
H A Dexport.c156 struct btrfs_key found_key; in btrfs_get_parent() local
194 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
195 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
200 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
205 key.objectid = found_key.offset; in btrfs_get_parent()
209 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
211 found_key.offset, 0); in btrfs_get_parent()
H A Dfile-item.c212 struct btrfs_key found_key; in btrfs_lookup_csum() local
231 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
232 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
235 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
1013 struct btrfs_key found_key; in find_next_csum_offset() local
1030 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset()
1031 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset()
1034 *next_offset = found_key.offset; in find_next_csum_offset()
1045 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
1116 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks()
[all …]
H A Droot-tree.c71 struct btrfs_key found_key; in btrfs_find_root() local
94 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
95 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
96 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root()
104 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
H A Dbackref.c1025 struct btrfs_key found_key; in add_inline_refs() local
2056 struct btrfs_key found_key; in btrfs_find_one_extref() local
2141 struct btrfs_key found_key; in btrfs_ref_to_path() local
2164 next_inum = found_key.offset; in btrfs_ref_to_path()
2236 size = found_key->offset; in extent_from_logical()
2254 logical, logical - found_key->objectid, found_key->objectid, in extent_from_logical()
2557 struct btrfs_key found_key; in iterate_inodes_from_logical() local
2594 struct btrfs_key found_key; in iterate_inode_refs() local
2599 &found_key); in iterate_inode_refs()
2609 parent = found_key.offset; in iterate_inode_refs()
[all …]
H A Dxattr.c279 struct btrfs_key found_key; in btrfs_listxattr() local
303 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in btrfs_listxattr()
314 if (found_key.objectid != key.objectid) in btrfs_listxattr()
316 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
318 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
H A Dsend.c1042 dir = found_key->offset; in iterate_inode_ref()
1076 found_key->objectid, in iterate_inode_ref()
1077 found_key->type, in iterate_inode_ref()
1078 found_key->offset); in iterate_inode_ref()
2029 struct btrfs_key found_key; in get_first_ref() local
2954 struct btrfs_key found_key; in did_create_dir() local
3204 struct btrfs_key found_key; in can_rmdir() local
4820 struct btrfs_key found_key; in process_all_refs() local
5124 struct btrfs_key found_key; in process_all_new_xattrs() local
6264 key = found_key; in is_extent_unchanged()
[all …]
H A Dtree-log.c1787 struct btrfs_key found_key; in delete_conflicting_dir_entry() local
2292 struct btrfs_key found_key; in replay_dir_deletes() local
2355 &found_key); in replay_dir_deletes()
4050 struct btrfs_key found_key; in drop_inode_items() local
4073 found_key.offset = 0; in drop_inode_items()
4074 found_key.type = 0; in drop_inode_items()
5480 key = found_key; in log_new_dir_dentries()
6794 struct btrfs_key found_key; in log_new_ancestors() local
6809 ino = found_key.offset; in log_new_ancestors()
7136 struct btrfs_key found_key; in btrfs_recover_log_trees() local
[all …]
H A Dinode.c305 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
1994 struct btrfs_key found_key; in run_delalloc_nocow() local
2037 if (found_key.objectid > ino) in run_delalloc_nocow()
2051 found_key.offset > end) in run_delalloc_nocow()
3530 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3532 found_key.offset = 0; in btrfs_orphan_cleanup()
3616 found_key.objectid); in btrfs_orphan_cleanup()
3618 found_key.objectid); in btrfs_orphan_cleanup()
3660 struct btrfs_key found_key; in acls_after_inode_item() local
5894 struct btrfs_key found_key; in btrfs_real_readdir() local
[all …]
H A Dctree.c1792 struct btrfs_key *found_key) in btrfs_find_item() argument
1799 ASSERT(found_key); in btrfs_find_item()
1818 if (found_key->type != key.type || in btrfs_find_item()
2481 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
2533 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf()
4743 struct btrfs_key found_key; in btrfs_search_forward() local
4837 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward()
5137 struct btrfs_key found_key; in btrfs_previous_item() local
5160 if (found_key.type == type) in btrfs_previous_item()
5163 found_key.type < type) in btrfs_previous_item()
[all …]
H A Dqgroup.c356 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
401 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
428 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config()
448 switch (found_key.type) { in btrfs_read_qgroup_config()
495 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
500 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
507 found_key.offset); in btrfs_read_qgroup_config()
511 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config()
961 struct btrfs_key found_key; in btrfs_quota_enable() local
1093 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable()
[all …]
H A Dscrub.c484 struct btrfs_key found_key; in scrub_print_common_warning() local
512 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning()
547 ctx.bytenr = found_key.objectid; in scrub_print_common_warning()
2396 struct btrfs_key found_key; in scrub_enumerate_chunks() local
2436 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2438 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
2441 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
2444 if (found_key.offset >= end) in scrub_enumerate_chunks()
2447 if (found_key.offset < key.offset) in scrub_enumerate_chunks()
2617 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks()
[all …]
H A Dprint-tree.c218 struct btrfs_key found_key; in btrfs_print_leaf() local
247 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf()
249 found_key.objectid, in btrfs_print_leaf()
H A Dctree.h562 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);
671 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ argument
674 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
H A Dvolumes.c1745 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1767 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1769 key = found_key; in btrfs_free_dev_extent()
1814 struct btrfs_key found_key; in find_next_devid() local
3340 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local
3401 if (found_key.offset == 0) in btrfs_relocate_sys_chunks()
3888 struct btrfs_key found_key; in __btrfs_balance() local
4020 found_key.offset); in __btrfs_balance()
4036 found_key.offset); in __btrfs_balance()
4046 if (found_key.offset == 0) in __btrfs_balance()
[all …]
H A Ddev-replace.c458 struct btrfs_key found_key; in mark_block_group_to_copy() local
514 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in mark_block_group_to_copy()
517 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy()
520 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in mark_block_group_to_copy()
523 if (found_key.offset < key.offset) in mark_block_group_to_copy()
H A Dtree-checker.c1986 struct btrfs_key found_key; in btrfs_verify_level_key() local
2021 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
2023 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
2024 ret = btrfs_comp_cpu_keys(first_key, &found_key); in btrfs_verify_level_key()
2033 found_key.objectid, found_key.type, in btrfs_verify_level_key()
2034 found_key.offset); in btrfs_verify_level_key()
H A Dblock-group.c583 struct btrfs_key *found_key) in sample_block_group_extent_item() argument
615 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item()
617 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item()
618 found_key->objectid >= block_group->start && in sample_block_group_extent_item()
619 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item()
623 if (found_key->objectid >= search_end) { in sample_block_group_extent_item()
2037 struct btrfs_key found_key; in find_first_block_group() local
2039 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group()
2040 if (found_key.objectid >= key->objectid && in find_first_block_group()
2041 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
[all …]
H A Dzoned.c1221 struct btrfs_key found_key; in calculate_alloc_pointer() local
1265 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer()
1267 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer()
1268 length = found_key.offset; in calculate_alloc_pointer()
1272 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer()
1273 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer()
1277 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
H A Dbackref.h205 struct btrfs_path *path, struct btrfs_key *found_key,
/openbmc/u-boot/cmd/
H A Dgpt.c132 static bool found_key(const char *str, const char *key) in found_key() function
535 if (found_key(tok, "bootable")) in set_gpt_info()

12