/fs/btrfs/ |
D | backref.c | 687 struct btrfs_key found_key; in __add_inline_refs() local 706 btrfs_item_key_to_cpu(leaf, &found_key, slot); in __add_inline_refs() 711 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in __add_inline_refs() 719 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in __add_inline_refs() 720 *info_level = found_key.offset; in __add_inline_refs() 1262 struct btrfs_key *found_key) argument 1265 BTRFS_INODE_REF_KEY, found_key); 1275 struct btrfs_key found_key; local 1310 btrfs_item_key_to_cpu(leaf, &found_key, slot); 1319 if (found_key.objectid != inode_objectid) [all …]
|
D | export.c | 161 struct btrfs_key found_key; in btrfs_get_parent() local 192 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 193 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 198 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 203 key.objectid = found_key.offset; in btrfs_get_parent() 207 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 209 found_key.offset, 0, 0); in btrfs_get_parent()
|
D | file-item.c | 94 struct btrfs_key found_key; in btrfs_lookup_csum() local 113 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 114 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 117 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 233 struct btrfs_key found_key; in __btrfs_lookup_bio_sums() local 257 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in __btrfs_lookup_bio_sums() 260 item_start_offset = found_key.offset; in __btrfs_lookup_bio_sums() 688 struct btrfs_key found_key; in btrfs_csum_file_blocks() local 751 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks() 752 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_csum_file_blocks() [all …]
|
D | send.c | 850 struct btrfs_key *found_key, int resolve, in iterate_inode_ref() argument 883 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 898 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 903 dir = found_key->offset; in iterate_inode_ref() 970 struct btrfs_key *found_key, in iterate_dir_item() argument 1104 struct btrfs_key key, found_key; in get_inode_path() local 1124 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1125 if (found_key.objectid != ino || in get_inode_path() 1126 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path() 1127 found_key.type != BTRFS_INODE_EXTREF_KEY)) { in get_inode_path() [all …]
|
D | root-tree.c | 85 struct btrfs_key found_key; in btrfs_find_root() local 108 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 109 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 110 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root() 118 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
|
D | qgroup.c | 271 struct btrfs_key found_key; in btrfs_read_qgroup_config() local 313 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 315 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config() 340 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config() 341 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 344 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 345 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config() 346 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { in btrfs_read_qgroup_config() 351 qgroup = add_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 357 switch (found_key.type) { in btrfs_read_qgroup_config() [all …]
|
D | inode.c | 1189 struct btrfs_key found_key; in run_delalloc_nocow() local 1248 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow() 1250 if (found_key.objectid == ino && in run_delalloc_nocow() 1251 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow() 1269 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow() 1271 if (found_key.objectid > ino) in run_delalloc_nocow() 1273 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow() 1274 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow() 1278 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow() 1279 found_key.offset > end) in run_delalloc_nocow() [all …]
|
D | xattr.c | 259 struct btrfs_key key, found_key; in btrfs_listxattr() local 307 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr() 310 if (found_key.objectid != key.objectid) in btrfs_listxattr() 312 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr() 314 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
|
D | inode-item.c | 420 struct btrfs_key found_key; in btrfs_lookup_inode() local 427 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode() 428 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 429 found_key.type == location->type) { in btrfs_lookup_inode()
|
D | tree-log.c | 1595 struct btrfs_key found_key; in replay_one_name() local 1648 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name() 1650 if (found_key.objectid == log_key.objectid && in replay_one_name() 1651 found_key.type == log_key.type && in replay_one_name() 1652 found_key.offset == log_key.offset && in replay_one_name() 1943 struct btrfs_key found_key; in replay_dir_deletes() local 1989 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes() 1991 if (found_key.objectid != dirid || in replay_dir_deletes() 1992 found_key.type != dir_key.type) in replay_dir_deletes() 1995 if (found_key.offset > range_end) in replay_dir_deletes() [all …]
|
D | print-tree.c | 186 struct btrfs_key found_key; in btrfs_print_leaf() local 214 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf() 216 found_key.objectid, in btrfs_print_leaf()
|
D | ctree.c | 2615 struct btrfs_key *found_key) in btrfs_find_item() argument 2628 if ((ret < 0) || (found_key == NULL)) in btrfs_find_item() 2639 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in btrfs_find_item() 2640 if (found_key->type != key.type || in btrfs_find_item() 2641 found_key->objectid != key.objectid) in btrfs_find_item() 5047 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 5069 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf() 5070 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf() 5113 struct btrfs_key found_key; in btrfs_search_forward() local 5144 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward() [all …]
|
D | scrub.c | 539 struct btrfs_key found_key; in scrub_print_warning() local 564 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_warning() 569 extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_warning() 570 swarn.extent_item_size = found_key.offset; in scrub_print_warning() 578 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in scrub_print_warning() 596 iterate_extent_inodes(fs_info, found_key.objectid, in scrub_print_warning() 2671 struct btrfs_key found_key; in scrub_enumerate_chunks() local 2703 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks() 2705 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks() 2708 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks() [all …]
|
D | volumes.c | 1276 struct btrfs_key found_key; in btrfs_free_dev_extent() local 1295 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent() 1298 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent() 1300 key = found_key; in btrfs_free_dev_extent() 1391 struct btrfs_key found_key; in find_next_devid() local 1414 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid() 1416 *devid_ret = found_key.offset + 1; in find_next_devid() 2712 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local 2742 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_relocate_sys_chunks() 2751 found_key.objectid, in btrfs_relocate_sys_chunks() [all …]
|
D | inode-map.c | 515 struct btrfs_key found_key; in btrfs_find_highest_objectid() local 532 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid() 533 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
|
D | backref.h | 39 struct btrfs_path *path, struct btrfs_key *found_key,
|
D | extent-tree.c | 990 struct btrfs_key found_key; in convert_extent_item_v0() local 1012 btrfs_item_key_to_cpu(leaf, &found_key, in convert_extent_item_v0() 1014 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0() 1015 if (found_key.type != BTRFS_EXTENT_REF_V0_KEY) { in convert_extent_item_v0() 8780 struct btrfs_key found_key; in find_first_block_group() local 8799 btrfs_item_key_to_cpu(leaf, &found_key, slot); in find_first_block_group() 8801 if (found_key.objectid >= key->objectid && in find_first_block_group() 8802 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group() 9020 struct btrfs_key found_key; in btrfs_read_block_groups() local 9049 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_read_block_groups() [all …]
|
D | free-space-cache.c | 949 struct btrfs_key found_key; in update_cache_item() local 952 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item() 953 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item() 954 found_key.offset != offset) { in update_cache_item()
|
D | extent_io.c | 4374 struct btrfs_key found_key; in extent_fiemap() local 4407 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in extent_fiemap() 4408 found_type = found_key.type; in extent_fiemap() 4411 if (found_key.objectid != btrfs_ino(inode) || in extent_fiemap() 4422 last = found_key.offset; in extent_fiemap()
|
D | ctree.h | 3492 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);
|