Home
last modified time | relevance | path

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

/Linux-v5.4/fs/btrfs/
Dfree-space-tree.c189 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
224 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
226 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in convert_free_space_to_bitmaps()
227 ASSERT(found_key.objectid == block_group->key.objectid); in convert_free_space_to_bitmaps()
228 ASSERT(found_key.offset == block_group->key.offset); in convert_free_space_to_bitmaps()
231 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in convert_free_space_to_bitmaps()
234 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
235 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
236 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
238 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
[all …]
Dexport.c164 struct btrfs_key found_key; in btrfs_get_parent() local
195 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
196 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
201 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
206 key.objectid = found_key.offset; in btrfs_get_parent()
210 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
212 found_key.offset, 0, 0); in btrfs_get_parent()
Dbackref.c885 struct btrfs_key found_key; in add_inline_refs() local
904 btrfs_item_key_to_cpu(leaf, &found_key, slot); in add_inline_refs()
909 if (found_key.type == BTRFS_EXTENT_ITEM_KEY && in add_inline_refs()
917 } else if (found_key.type == BTRFS_METADATA_ITEM_KEY) { in add_inline_refs()
918 *info_level = found_key.offset; in add_inline_refs()
1537 struct btrfs_key found_key; local
1572 btrfs_item_key_to_cpu(leaf, &found_key, slot);
1581 if (found_key.objectid != inode_objectid)
1583 if (found_key.type != BTRFS_INODE_EXTREF_KEY)
1591 *found_off = found_key.offset;
[all …]
Dfile-item.c89 struct btrfs_key found_key; in btrfs_lookup_csum() local
108 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
109 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
112 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
225 struct btrfs_key found_key; in __btrfs_lookup_bio_sums() local
249 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in __btrfs_lookup_bio_sums()
252 item_start_offset = found_key.offset; in __btrfs_lookup_bio_sums()
740 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
803 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks()
804 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_csum_file_blocks()
[all …]
Droot-tree.c70 struct btrfs_key found_key; in btrfs_find_root() local
93 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
94 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
95 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root()
103 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
Dxattr.c281 struct btrfs_key found_key; in btrfs_listxattr() local
302 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
305 if (found_key.objectid != key.objectid) in btrfs_listxattr()
307 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
309 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
Dblock-group.c1432 struct btrfs_key found_key; in find_first_block_group() local
1453 btrfs_item_key_to_cpu(leaf, &found_key, slot); in find_first_block_group()
1455 if (found_key.objectid >= key->objectid && in find_first_block_group()
1456 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
1462 em = lookup_extent_mapping(em_tree, found_key.objectid, in find_first_block_group()
1463 found_key.offset); in find_first_block_group()
1468 found_key.objectid, found_key.offset); in find_first_block_group()
1470 } else if (em->start != found_key.objectid || in find_first_block_group()
1471 em->len != found_key.offset) { in find_first_block_group()
1474 found_key.objectid, found_key.offset, in find_first_block_group()
[all …]
Dsend.c882 struct btrfs_key *found_key, int resolve, in iterate_inode_ref() argument
915 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref()
930 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref()
935 dir = found_key->offset; in iterate_inode_ref()
1136 struct btrfs_key key, found_key; in get_inode_path() local
1156 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path()
1157 if (found_key.objectid != ino || in get_inode_path()
1158 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path()
1159 found_key.type != BTRFS_INODE_EXTREF_KEY)) { in get_inode_path()
1164 ret = iterate_inode_ref(root, p, &found_key, 1, in get_inode_path()
[all …]
Dinode.c1348 struct btrfs_key found_key; in run_delalloc_nocow() local
1372 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1374 if (found_key.objectid == ino && in run_delalloc_nocow()
1375 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1394 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1397 if (found_key.objectid > ino) in run_delalloc_nocow()
1403 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
1404 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
1410 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1411 found_key.offset > end) in run_delalloc_nocow()
[all …]
Dinode-item.c412 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()
Dtree-log.c1937 struct btrfs_key found_key; in replay_one_name() local
1991 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1993 if (found_key.objectid == log_key.objectid && in replay_one_name()
1994 found_key.type == log_key.type && in replay_one_name()
1995 found_key.offset == log_key.offset && in replay_one_name()
2436 struct btrfs_key found_key; in replay_dir_deletes() local
2484 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
2486 if (found_key.objectid != dirid || in replay_dir_deletes()
2487 found_key.type != dir_key.type) in replay_dir_deletes()
2490 if (found_key.offset > range_end) in replay_dir_deletes()
[all …]
Dprint-tree.c181 struct btrfs_key found_key; in btrfs_print_leaf() local
211 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf()
213 found_key.objectid, in btrfs_print_leaf()
Dqgroup.c330 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
372 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
374 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config()
398 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config()
399 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config()
402 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config()
403 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config()
404 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { in btrfs_read_qgroup_config()
409 qgroup = add_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config()
415 switch (found_key.type) { in btrfs_read_qgroup_config()
[all …]
Dctree.c2591 struct btrfs_key *found_key) in btrfs_find_item() argument
2598 ASSERT(found_key); in btrfs_find_item()
2616 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in btrfs_find_item()
2617 if (found_key->type != key.type || in btrfs_find_item()
2618 found_key->objectid != key.objectid) in btrfs_find_item()
5099 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
5121 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf()
5122 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf()
5162 struct btrfs_key found_key; in btrfs_search_forward() local
5197 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
[all …]
Dinode-map.c533 struct btrfs_key found_key; in btrfs_find_highest_objectid() local
550 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid()
551 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
Dbackref.h23 struct btrfs_path *path, struct btrfs_key *found_key,
Dscrub.c734 struct btrfs_key found_key; in scrub_print_warning() local
759 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_warning()
764 extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_warning()
765 swarn.extent_item_size = found_key.offset; in scrub_print_warning()
773 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in scrub_print_warning()
790 iterate_extent_inodes(fs_info, found_key.objectid, in scrub_print_warning()
3486 struct btrfs_key found_key; in scrub_enumerate_chunks() local
3524 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
3526 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
3529 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
[all …]
Dvolumes.c1725 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1744 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent()
1747 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1749 key = found_key; in btrfs_free_dev_extent()
1841 struct btrfs_key found_key; in find_next_devid() local
1869 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid()
1871 *devid_ret = found_key.offset + 1; in find_next_devid()
3105 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local
3139 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_relocate_sys_chunks()
3147 ret = btrfs_relocate_chunk(fs_info, found_key.offset); in btrfs_relocate_sys_chunks()
[all …]
Ddisk-io.c396 struct btrfs_key found_key; in btrfs_verify_level_key() local
431 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
433 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
434 ret = btrfs_comp_cpu_keys(first_key, &found_key); in btrfs_verify_level_key()
443 found_key.objectid, found_key.type, in btrfs_verify_level_key()
444 found_key.offset); in btrfs_verify_level_key()
Dfree-space-cache.c1014 struct btrfs_key found_key; in update_cache_item() local
1017 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item()
1018 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item()
1019 found_key.offset != offset) { in update_cache_item()
Dextent_io.c4604 struct btrfs_key found_key; in extent_fiemap() local
4650 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in extent_fiemap()
4651 found_type = found_key.type; in extent_fiemap()
4654 if (found_key.objectid != btrfs_ino(BTRFS_I(inode)) || in extent_fiemap()
4665 last = found_key.offset; in extent_fiemap()
Dctree.h2553 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);
/Linux-v5.4/fs/afs/
Dwrite.c386 goto found_key; in afs_store_data()
398 found_key: in afs_store_data()