/linux-master/fs/btrfs/ |
H A D | inode-item.c | 409 struct btrfs_key found_key; local 416 btrfs_item_key_to_cpu(leaf, &found_key, slot); 417 if (found_key.objectid == location->objectid && 418 found_key.type == location->type) { 467 struct btrfs_key found_key; local 533 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 534 found_type = found_key.type; 536 if (found_key.objectid != control->ino) 542 item_end = found_key.offset; 554 found_key [all...] |
H A D | export.c | 155 struct btrfs_key found_key; local 193 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 194 if (found_key.objectid != key.objectid || found_key.type != key.type) { 199 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { 204 key.objectid = found_key.offset; 208 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { 210 found_key.offset, 0);
|
H A D | free-space-tree.c | 212 struct btrfs_key key, found_key; local 246 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); 248 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { 249 ASSERT(found_key.objectid == block_group->start); 250 ASSERT(found_key.offset == block_group->length); 253 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { 256 ASSERT(found_key.objectid >= start); 257 ASSERT(found_key.objectid < end); 258 ASSERT(found_key.objectid + found_key 350 struct btrfs_key key, found_key; local 1413 struct btrfs_key key, found_key; local [all...] |
H A D | raid-stripe-tree.c | 157 struct btrfs_key found_key; local 195 btrfs_item_key_to_cpu(leaf, &found_key, slot); 196 found_logical = found_key.objectid; 197 found_length = found_key.offset;
|
H A D | root-tree.c | 71 struct btrfs_key found_key; local 101 btrfs_item_key_to_cpu(l, &found_key, slot); 102 if (found_key.objectid != search_key->objectid || 103 found_key.type != BTRFS_ROOT_ITEM_KEY) { 111 memcpy(root_key, &found_key, sizeof(found_key));
|
H A D | file-item.c | 208 struct btrfs_key found_key; local 227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 228 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) 231 csum_offset = (bytenr - found_key.offset) >> 1009 struct btrfs_key found_key; local 1024 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); 1026 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || 1027 found_key.type != BTRFS_EXTENT_CSUM_KEY) 1030 *next_offset = found_key.offset; 1041 struct btrfs_key found_key; local [all...] |
H A D | xattr.c | 279 struct btrfs_key found_key; local 303 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { 314 if (found_key.objectid != key.objectid) 316 if (found_key.type > BTRFS_XATTR_ITEM_KEY) 318 if (found_key.type < BTRFS_XATTR_ITEM_KEY)
|
H A D | tree-log.c | 1783 struct btrfs_key found_key; local 1785 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); 1787 if (found_key.objectid == log_key->objectid && 1788 found_key.type == log_key->type && 1789 found_key.offset == log_key->offset && 2288 struct btrfs_key found_key; local 2338 btrfs_item_key_to_cpu(path->nodes[0], &found_key, 2340 if (found_key.objectid != dirid || 2341 found_key.type != dir_key.type) { 2346 if (found_key 4107 struct btrfs_key found_key; local 5458 struct btrfs_key found_key; local 6846 struct btrfs_key found_key; local 6979 struct btrfs_key found_key; local 7188 struct btrfs_key found_key; local [all...] |
H A D | backref.c | 1022 struct btrfs_key found_key; local 1045 btrfs_item_key_to_cpu(leaf, &found_key, slot); 1050 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && 1058 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { 1059 *info_level = found_key.offset; 2056 struct btrfs_key found_key; local 2091 btrfs_item_key_to_cpu(leaf, &found_key, slot); 2100 if (found_key.objectid != inode_objectid) 2102 if (found_key.type != BTRFS_INODE_EXTREF_KEY) 2110 *found_off = found_key 2141 struct btrfs_key found_key; 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) argument 2563 struct btrfs_key found_key; local 2600 struct btrfs_key found_key; local [all...] |
H A D | send.c | 995 struct btrfs_key *found_key, int resolve, 1027 if (found_key->type == BTRFS_INODE_REF_KEY) { 1041 if (found_key->type == BTRFS_INODE_REF_KEY) { 1046 dir = found_key->offset; 1080 found_key->objectid, 1081 found_key->type, 1082 found_key->offset); 1251 struct btrfs_key key, found_key; local 1271 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); 1272 if (found_key 994 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) argument 2033 struct btrfs_key found_key; local 2957 struct btrfs_key found_key; local 3207 struct btrfs_key found_key; local 4829 struct btrfs_key found_key; local 5133 struct btrfs_key found_key; local 6193 struct btrfs_key found_key; local 6577 struct btrfs_key found_key; local [all...] |
H A D | scrub.c | 483 struct btrfs_key found_key; local 506 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, 511 swarn.extent_item_size = found_key.offset; 523 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, 546 ctx.bytenr = found_key.objectid; 547 ctx.extent_item_pos = swarn.logical - found_key.objectid; 2469 struct btrfs_key found_key; local 2509 btrfs_item_key_to_cpu(l, &found_key, slot); 2511 if (found_key.objectid != scrub_dev->devid) 2514 if (found_key [all...] |
H A D | ctree.c | 1665 struct btrfs_key *found_key) 1672 ASSERT(found_key); 1690 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); 1691 if (found_key->type != key.type || 1692 found_key->objectid != key.objectid) 2354 struct btrfs_disk_key found_key; local 2390 btrfs_item_key(path->nodes[0], &found_key, path->slots[0]); 2391 ret = btrfs_comp_keys(&found_key, &orig_key); 2405 btrfs_item_key(path->nodes[0], &found_key, 0); 2406 ret = btrfs_comp_keys(&found_key, 1663 btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, u64 iobjectid, u64 ioff, u8 key_type, struct btrfs_key *found_key) argument 4619 struct btrfs_key found_key; local 5013 struct btrfs_key found_key; local 5054 struct btrfs_key found_key; local [all...] |
H A D | print-tree.c | 249 struct btrfs_key found_key; local 278 btrfs_dir_item_key_to_cpu(l, di, &found_key); 280 found_key.objectid,
|
H A D | ctree.h | 576 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key); 663 * Search in @root for a given @key, and store the slot found in @found_key. 667 * @found_key: Will hold the found item. 681 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ 684 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
|
H A D | inode.c | 240 struct btrfs_key found_key = { 0 }; local 273 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); 288 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, 313 ctx.bytenr = found_key.objectid; 314 ctx.extent_item_pos = logical - found_key.objectid; 318 reloc_warn.extent_item_size = found_key.offset; 2009 struct btrfs_key found_key; local 2030 btrfs_item_key_to_cpu(leaf, &found_key, 2032 if (found_key.objectid == ino && 2033 found_key 3501 struct btrfs_key key, found_key; local 3703 struct btrfs_key found_key; local 5792 struct btrfs_key key, found_key; local 5934 struct btrfs_key found_key; local 6817 struct btrfs_key found_key; local [all...] |
H A D | qgroup.c | 388 struct btrfs_key found_key; local 433 btrfs_item_key_to_cpu(l, &found_key, slot); 435 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { 459 if (found_key.type != BTRFS_QGROUP_INFO_KEY && 460 found_key.type != BTRFS_QGROUP_LIMIT_KEY) 463 qgroup = find_qgroup_rb(fs_info, found_key.offset); 464 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || 465 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { 477 qgroup = add_qgroup_rb(fs_info, prealloc, found_key.offset); 483 switch (found_key 1004 struct btrfs_key found_key; local [all...] |
H A D | dev-replace.c | 457 struct btrfs_key found_key; local 513 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { 516 if (found_key.objectid != src_dev->devid) 519 if (found_key.type != BTRFS_DEV_EXTENT_KEY) 522 if (found_key.offset < key.offset)
|
H A D | backref.h | 217 struct btrfs_path *path, struct btrfs_key *found_key,
|
H A D | tree-checker.c | 2075 struct btrfs_key found_key; local 2110 btrfs_node_key_to_cpu(eb, &found_key, 0); 2112 btrfs_item_key_to_cpu(eb, &found_key, 0); 2113 ret = btrfs_comp_cpu_keys(first_key, &found_key); 2122 found_key.objectid, found_key.type, 2123 found_key.offset);
|
H A D | volumes.c | 1748 struct btrfs_key found_key; local 1767 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 1770 BUG_ON(found_key.offset > start || found_key.offset + 1772 key = found_key; 1816 struct btrfs_key found_key; local 1844 btrfs_item_key_to_cpu(path->nodes[0], &found_key, 1846 *devid_ret = found_key.offset + 1; 3410 struct btrfs_key found_key; local 3454 btrfs_item_key_to_cpu(leaf, &found_key, pat 3995 struct btrfs_key found_key; local 7512 struct btrfs_key found_key; local [all...] |
H A D | block-group.c | 583 struct btrfs_key *found_key) 615 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { 617 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && 618 found_key->objectid >= block_group->start && 619 found_key->objectid + found_key->offset <= search_end) 623 if (found_key->objectid >= search_end) { 2022 struct btrfs_key found_key; local 2024 btrfs_for_each_slot(root, key, &found_key, path, ret) { 2025 if (found_key 580 sample_block_group_extent_item(struct btrfs_caching_control *caching_ctl, struct btrfs_block_group *block_group, int index, int max_index, struct btrfs_key *found_key) argument [all...] |
H A D | zoned.c | 1218 struct btrfs_key found_key; local 1262 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); 1264 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) 1265 length = found_key.offset; 1269 if (!(found_key.objectid >= cache->start && 1270 found_key.objectid + length <= cache->start + cache->length)) { 1274 *offset_ret = found_key.objectid + length - cache->start;
|
H A D | disk-io.c | 429 struct btrfs_key found_key; local 432 btrfs_node_key_to_cpu(eb, &found_key, 0); 434 btrfs_item_key_to_cpu(eb, &found_key, 0); 435 if (unlikely(btrfs_comp_cpu_keys(expect_key, &found_key))) { 441 found_key.objectid, found_key.type, 442 found_key.offset); 4918 struct btrfs_key found_key; local 4942 btrfs_item_key_to_cpu(l, &found_key, slot); 4943 root->free_objectid = max_t(u64, found_key [all...] |
H A D | free-space-cache.c | 1171 struct btrfs_key found_key; local 1174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 1175 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || 1176 found_key.offset != offset) {
|