/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | inode-item.c | 410 struct btrfs_key found_key; in btrfs_lookup_inode() local 417 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode() 418 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 419 found_key.type == location->type) { in btrfs_lookup_inode() 468 struct btrfs_key found_key; in btrfs_truncate_inode_items() local 534 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items() 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 in btrfs_truncate_inode_items() [all...] |
H A D | export.c | 156 struct btrfs_key found_key; in btrfs_get_parent() local 187 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 188 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 193 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 198 key.objectid = found_key.offset; in btrfs_get_parent() 202 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 204 found_key.offset, 0); in btrfs_get_parent()
|
H A D | free-space-tree.c | 212 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local 246 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps() 248 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps() 249 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps() 250 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps() 253 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps() 256 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 258 ASSERT(found_key.objectid + found_key in convert_free_space_to_bitmaps() 350 struct btrfs_key key, found_key; convert_free_space_to_extents() local 1405 struct btrfs_key key, found_key; remove_block_group_free_space() local [all...] |
H A D | file-item.c | 212 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 1028 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in find_next_csum_offset() 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 [all...] |
H A D | root-tree.c | 71 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 D | tree-log.c | 1787 struct btrfs_key found_key; in delete_conflicting_dir_entry() local 1789 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in delete_conflicting_dir_entry() 1791 if (found_key.objectid == log_key->objectid && in delete_conflicting_dir_entry() 1792 found_key.type == log_key->type && in delete_conflicting_dir_entry() 1793 found_key.offset == log_key->offset && in delete_conflicting_dir_entry() 2292 struct btrfs_key found_key; in replay_dir_deletes() local 2342 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes() 2344 if (found_key.objectid != dirid || in replay_dir_deletes() 2345 found_key.type != dir_key.type) { in replay_dir_deletes() 2350 if (found_key in replay_dir_deletes() 4050 struct btrfs_key found_key; drop_inode_items() local 5401 struct btrfs_key found_key; log_new_dir_dentries() local 6789 struct btrfs_key found_key; log_new_ancestors() local 6922 struct btrfs_key found_key; log_all_new_ancestors() local 7131 struct btrfs_key found_key; btrfs_recover_log_trees() local [all...] |
H A D | backref.c | 1025 struct btrfs_key found_key; in add_inline_refs() local 1050 btrfs_item_key_to_cpu(leaf, &found_key, slot); in add_inline_refs() 1055 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in add_inline_refs() 1063 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in add_inline_refs() 1064 *info_level = found_key.offset; in add_inline_refs() 2056 struct btrfs_key found_key; in btrfs_find_one_extref() local 2091 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_find_one_extref() 2100 if (found_key.objectid != inode_objectid) in btrfs_find_one_extref() 2102 if (found_key.type != BTRFS_INODE_EXTREF_KEY) in btrfs_find_one_extref() 2110 *found_off = found_key in btrfs_find_one_extref() 2141 struct btrfs_key found_key; btrfs_ref_to_path() local 2202 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 2557 struct btrfs_key found_key; iterate_inodes_from_logical() local 2594 struct btrfs_key found_key; iterate_inode_refs() local [all...] |
H A D | xattr.c | 279 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 D | scrub.c | 484 struct btrfs_key found_key; in scrub_print_common_warning() local 507 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_common_warning() 512 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning() 524 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in scrub_print_common_warning() 547 ctx.bytenr = found_key.objectid; in scrub_print_common_warning() 548 ctx.extent_item_pos = swarn.logical - 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 in scrub_enumerate_chunks() [all...] |
H A D | qgroup.c | 356 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() 403 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config() 427 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config() 428 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 431 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 432 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config() 433 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { in btrfs_read_qgroup_config() 438 qgroup = add_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 448 switch (found_key in btrfs_read_qgroup_config() 961 struct btrfs_key found_key; btrfs_quota_enable() local [all...] |
H A D | send.c | 991 struct btrfs_key *found_key, int resolve, in iterate_inode_ref() 1023 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1037 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1042 dir = found_key->offset; in iterate_inode_ref() 1239 struct btrfs_key key, found_key; in get_inode_path() local 1259 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1260 if (found_key.objectid != ino || in get_inode_path() 1261 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path() 1262 found_key.type != BTRFS_INODE_EXTREF_KEY)) { in get_inode_path() 1267 ret = iterate_inode_ref(root, p, &found_key, in get_inode_path() 990 iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *found_key, int resolve, iterate_inode_ref_t iterate, void *ctx) iterate_inode_ref() argument 2021 struct btrfs_key found_key; get_first_ref() local 2946 struct btrfs_key found_key; did_create_dir() local 3196 struct btrfs_key found_key; can_rmdir() local 4812 struct btrfs_key found_key; process_all_refs() local 5116 struct btrfs_key found_key; process_all_new_xattrs() local 6176 struct btrfs_key found_key; is_extent_unchanged() local 6563 struct btrfs_key found_key; process_all_extents() local [all...] |
H A D | inode.c | 232 struct btrfs_key found_key = { 0 }; in print_data_reloc_error() local 265 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error() 280 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error() 305 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 306 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error() 310 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error() 1995 struct btrfs_key found_key; in run_delalloc_nocow() local 2016 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow() 2018 if (found_key.objectid == ino && in run_delalloc_nocow() 2019 found_key in run_delalloc_nocow() 3459 struct btrfs_key key, found_key; btrfs_orphan_cleanup() local 3661 struct btrfs_key found_key; acls_after_inode_item() local 5742 struct btrfs_key key, found_key; btrfs_set_inode_index_count() local 5884 struct btrfs_key found_key; btrfs_real_readdir() local 6761 struct btrfs_key found_key; btrfs_get_extent() local [all...] |
H A D | ctree.c | 1792 struct btrfs_key *found_key) in btrfs_find_item() 1799 ASSERT(found_key); in btrfs_find_item() 1817 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in btrfs_find_item() 1818 if (found_key->type != key.type || in btrfs_find_item() 1819 found_key->objectid != key.objectid) in btrfs_find_item() 2481 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 2517 btrfs_item_key(path->nodes[0], &found_key, path->slots[0]); in btrfs_prev_leaf() 2518 ret = comp_keys(&found_key, &orig_key); in btrfs_prev_leaf() 2532 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf() 2533 ret = comp_keys(&found_key, in btrfs_prev_leaf() 1790 btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, u64 iobjectid, u64 ioff, u8 key_type, struct btrfs_key *found_key) btrfs_find_item() argument 4743 struct btrfs_key found_key; btrfs_search_forward() local 5137 struct btrfs_key found_key; btrfs_previous_item() local 5178 struct btrfs_key found_key; btrfs_previous_extent_item() local [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | export.c | 143 struct btrfs_key found_key; in btrfs_get_parent() local 174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 175 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 180 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 185 key.objectid = found_key.offset; in btrfs_get_parent() 189 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 191 found_key.offset, 0, 0); in btrfs_get_parent()
|
H A D | free-space-tree.c | 192 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local 227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps() 229 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps() 230 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps() 231 ASSERT(found_key.offset == block_group->length); in convert_free_space_to_bitmaps() 234 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps() 237 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 239 ASSERT(found_key.objectid + found_key in convert_free_space_to_bitmaps() 332 struct btrfs_key key, found_key; convert_free_space_to_extents() local 1328 struct btrfs_key key, found_key; remove_block_group_free_space() local [all...] |
H A D | file-item.c | 180 struct btrfs_key found_key; in btrfs_lookup_csum() local 199 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 200 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 203 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 328 struct btrfs_key found_key; in btrfs_lookup_bio_sums() local 352 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_lookup_bio_sums() 355 item_start_offset = found_key.offset; in btrfs_lookup_bio_sums() 848 struct btrfs_key found_key; in btrfs_csum_file_blocks() local 913 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks() 914 if (found_key in btrfs_csum_file_blocks() [all...] |
H A D | backref.c | 972 struct btrfs_key found_key; in add_inline_refs() local 990 btrfs_item_key_to_cpu(leaf, &found_key, slot); in add_inline_refs() 995 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in add_inline_refs() 1003 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in add_inline_refs() 1004 *info_level = found_key.offset; in add_inline_refs() 1635 struct btrfs_key found_key; local 1670 btrfs_item_key_to_cpu(leaf, &found_key, slot); 1679 if (found_key.objectid != inode_objectid) 1681 if (found_key.type != BTRFS_INODE_EXTREF_KEY) 1689 *found_off = found_key 1720 struct btrfs_key found_key; global() local 1786 extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, struct btrfs_path *path, struct btrfs_key *found_key, u64 *flags_ret) global() argument 2094 struct btrfs_key found_key; global() local 2129 struct btrfs_key found_key; global() local [all...] |
H A D | root-tree.c | 68 struct btrfs_key found_key; in btrfs_find_root() local 91 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 92 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 93 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root() 101 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
|
H A D | tree-log.c | 1933 struct btrfs_key found_key; in replay_one_name() local 1994 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name() 1996 if (found_key.objectid == log_key.objectid && in replay_one_name() 1997 found_key.type == log_key.type && in replay_one_name() 1998 found_key.offset == log_key.offset && in replay_one_name() 2034 found_key.objectid = log_key.objectid; in replay_one_name() 2035 found_key.type = BTRFS_INODE_REF_KEY; in replay_one_name() 2036 found_key.offset = key->objectid; in replay_one_name() 2037 ret = backref_in_log(root->log_root, &found_key, 0, name, name_len); in replay_one_name() 2047 found_key in replay_one_name() 2462 struct btrfs_key found_key; replay_dir_deletes() local 3830 struct btrfs_key found_key; drop_objectid_items() local 5912 struct btrfs_key found_key; log_new_ancestors() local 6045 struct btrfs_key found_key; log_all_new_ancestors() local 6273 struct btrfs_key found_key; btrfs_recover_log_trees() local [all...] |
H A D | xattr.c | 306 struct btrfs_key found_key; in btrfs_listxattr() local 327 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr() 330 if (found_key.objectid != key.objectid) in btrfs_listxattr() 332 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr() 334 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
|
H A D | send.c | 885 struct btrfs_key *found_key, int resolve, in iterate_inode_ref() 918 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 933 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 938 dir = found_key->offset; in iterate_inode_ref() 1139 struct btrfs_key key, found_key; in get_inode_path() local 1159 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1160 if (found_key.objectid != ino || in get_inode_path() 1161 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path() 1162 found_key.type != BTRFS_INODE_EXTREF_KEY)) { in get_inode_path() 1167 ret = iterate_inode_ref(root, p, &found_key, in get_inode_path() 884 iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *found_key, int resolve, iterate_inode_ref_t iterate, void *ctx) iterate_inode_ref() argument 1315 struct btrfs_key found_key; find_extent_clone() local 1746 struct btrfs_key found_key; get_first_ref() local 2680 struct btrfs_key found_key; did_create_dir() local 2946 struct btrfs_key found_key; can_rmdir() local 4565 struct btrfs_key found_key; process_all_refs() local 4888 struct btrfs_key found_key; process_all_new_xattrs() local 5622 struct btrfs_key found_key; is_extent_unchanged() local 6008 struct btrfs_key found_key; process_all_extents() local [all...] |
H A D | inode.c | 1478 struct btrfs_key found_key; in run_delalloc_nocow() local 1502 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow() 1504 if (found_key.objectid == ino && in run_delalloc_nocow() 1505 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow() 1524 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow() 1527 if (found_key.objectid > ino) in run_delalloc_nocow() 1533 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow() 1534 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow() 1540 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow() 1541 found_key in run_delalloc_nocow() 3042 struct btrfs_key key, found_key; btrfs_orphan_cleanup() local 3220 struct btrfs_key found_key; acls_after_inode_item() local 4221 struct btrfs_key found_key; btrfs_truncate_inode_items() local 5664 struct btrfs_key found_key; btrfs_real_readdir() local 5865 struct btrfs_key key, found_key; btrfs_set_inode_index_count() local 6603 struct btrfs_key found_key; btrfs_get_extent() local [all...] |
H A D | qgroup.c | 331 struct btrfs_key found_key; in btrfs_read_qgroup_config() local 376 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 378 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config() 402 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config() 403 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 406 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 407 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config() 408 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { in btrfs_read_qgroup_config() 413 qgroup = add_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config() 423 switch (found_key in btrfs_read_qgroup_config() 937 struct btrfs_key found_key; btrfs_quota_enable() local [all...] |
H A D | inode-item.c | 412 struct btrfs_key found_key; in btrfs_lookup_inode() local 419 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode() 420 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 421 found_key.type == location->type) { in btrfs_lookup_inode()
|
H A D | ctree.c | 2553 struct btrfs_key *found_key) in btrfs_find_item() 2560 ASSERT(found_key); in btrfs_find_item() 2578 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in btrfs_find_item() 2579 if (found_key->type != key.type || in btrfs_find_item() 2580 found_key->objectid != key.objectid) in btrfs_find_item() 5168 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 5204 btrfs_item_key(path->nodes[0], &found_key, path->slots[0]); in btrfs_prev_leaf() 5205 ret = comp_keys(&found_key, &orig_key); in btrfs_prev_leaf() 5219 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf() 5220 ret = comp_keys(&found_key, in btrfs_prev_leaf() 2551 btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, u64 iobjectid, u64 ioff, u8 key_type, struct btrfs_key *found_key) btrfs_find_item() argument 5260 struct btrfs_key found_key; btrfs_search_forward() local 5630 struct btrfs_key found_key; btrfs_previous_item() local 5672 struct btrfs_key found_key; btrfs_previous_extent_item() local [all...] |