Home
last modified time | relevance | path

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

/fs/btrfs/
Dbackref.c1077 struct btrfs_key *found_key) in __inode_info() argument
1099 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in __inode_info()
1100 if (found_key->type != key.type || found_key->objectid != key.objectid) in __inode_info()
1119 struct btrfs_key *found_key) in inode_ref_info() argument
1122 found_key); in inode_ref_info()
1132 struct btrfs_key found_key; in btrfs_find_one_extref() local
1167 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_find_one_extref()
1176 if (found_key.objectid != inode_objectid) in btrfs_find_one_extref()
1178 if (btrfs_key_type(&found_key) != BTRFS_INODE_EXTREF_KEY) in btrfs_find_one_extref()
1186 *found_off = found_key.offset; in btrfs_find_one_extref()
[all …]
Dexport.c167 struct btrfs_key found_key; in btrfs_get_parent() local
198 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
199 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
204 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
209 key.objectid = found_key.offset; in btrfs_get_parent()
213 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
215 found_key.offset, 0, 0); in btrfs_get_parent()
Dsend.c758 struct btrfs_key *found_key, int resolve, in iterate_inode_ref() argument
791 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref()
806 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref()
811 dir = found_key->offset; in iterate_inode_ref()
879 struct btrfs_key *found_key, in iterate_dir_item() argument
997 struct btrfs_key key, found_key; in get_inode_path() local
1017 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path()
1018 if (found_key.objectid != ino || in get_inode_path()
1019 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path()
1020 found_key.type != BTRFS_INODE_EXTREF_KEY)) { in get_inode_path()
[all …]
Dfile-item.c94 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 (btrfs_key_type(&found_key) != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
117 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
208 struct btrfs_key found_key; in __btrfs_lookup_bio_sums() local
234 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in __btrfs_lookup_bio_sums()
237 item_start_offset = found_key.offset; in __btrfs_lookup_bio_sums()
700 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
759 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks()
760 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_csum_file_blocks()
[all …]
Droot-tree.c76 struct btrfs_key found_key; in btrfs_find_last_root() local
99 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_last_root()
100 if (found_key.objectid != objectid || in btrfs_find_last_root()
101 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_last_root()
108 memcpy(key, &found_key, sizeof(found_key)); in btrfs_find_last_root()
226 struct btrfs_key found_key; in btrfs_find_dead_roots() local
270 memcpy(&found_key, &key, sizeof(key)); in btrfs_find_dead_roots()
275 &found_key); in btrfs_find_dead_roots()
Dqgroup.c251 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
286 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
288 if (found_key.type == BTRFS_QGROUP_STATUS_KEY) { in btrfs_read_qgroup_config()
326 if (found_key.type != BTRFS_QGROUP_INFO_KEY && in btrfs_read_qgroup_config()
327 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config()
330 qgroup = find_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config()
331 if ((qgroup && found_key.type == BTRFS_QGROUP_INFO_KEY) || in btrfs_read_qgroup_config()
332 (!qgroup && found_key.type == BTRFS_QGROUP_LIMIT_KEY)) { in btrfs_read_qgroup_config()
337 qgroup = add_qgroup_rb(fs_info, found_key.offset); in btrfs_read_qgroup_config()
343 switch (found_key.type) { in btrfs_read_qgroup_config()
[all …]
Dinode.c1199 struct btrfs_key found_key; in run_delalloc_nocow() local
1264 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1266 if (found_key.objectid == ino && in run_delalloc_nocow()
1267 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1287 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1289 if (found_key.objectid > ino || in run_delalloc_nocow()
1290 found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1291 found_key.offset > end) in run_delalloc_nocow()
1294 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1295 extent_end = found_key.offset; in run_delalloc_nocow()
[all …]
Dxattr.c221 struct btrfs_key key, found_key; in btrfs_listxattr() local
269 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
272 if (found_key.objectid != key.objectid) in btrfs_listxattr()
274 if (btrfs_key_type(&found_key) != BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
Dtree-log.c1513 struct btrfs_key found_key; in replay_one_name() local
1563 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1565 if (found_key.objectid == log_key.objectid && in replay_one_name()
1566 found_key.type == log_key.type && in replay_one_name()
1567 found_key.offset == log_key.offset && in replay_one_name()
1850 struct btrfs_key found_key; in replay_dir_deletes() local
1896 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
1898 if (found_key.objectid != dirid || in replay_dir_deletes()
1899 found_key.type != dir_key.type) in replay_dir_deletes()
1902 if (found_key.offset > range_end) in replay_dir_deletes()
[all …]
Dprint-tree.c172 struct btrfs_key found_key; in btrfs_print_leaf() local
204 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf()
206 (unsigned long long)found_key.objectid, in btrfs_print_leaf()
Dinode-item.c485 struct btrfs_key found_key; in btrfs_lookup_inode() local
492 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()
493 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
494 btrfs_key_type(&found_key) == btrfs_key_type(location)) { in btrfs_lookup_inode()
Dvolumes.c1150 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1169 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent()
1172 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1174 key = found_key; in btrfs_free_dev_extent()
1254 struct btrfs_key found_key; in find_next_chunk() local
1274 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_chunk()
1276 if (found_key.objectid != objectid) in find_next_chunk()
1281 *offset = found_key.offset + in find_next_chunk()
1295 struct btrfs_key found_key; in find_next_devid() local
1319 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid()
[all …]
Dscrub.c503 struct btrfs_key found_key; in scrub_print_warning() local
534 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_warning()
539 extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_warning()
540 swarn.extent_item_size = found_key.offset; in scrub_print_warning()
565 iterate_extent_inodes(fs_info, found_key.objectid, in scrub_print_warning()
2611 struct btrfs_key found_key; in scrub_enumerate_chunks() local
2643 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2645 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
2648 if (btrfs_key_type(&found_key) != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
2651 if (found_key.offset >= end) in scrub_enumerate_chunks()
[all …]
Dinode-map.c528 struct btrfs_key found_key; in btrfs_find_highest_objectid() local
545 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid()
546 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
Dbackref.h41 struct btrfs_path *path, struct btrfs_key *found_key,
Dctree.c4853 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
4871 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf()
4872 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf()
4906 struct btrfs_key found_key; in btrfs_search_forward() local
4936 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4975 btrfs_node_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4995 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward()
5679 struct btrfs_key found_key; in btrfs_previous_item() local
5700 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_previous_item()
5701 if (found_key.objectid < min_objectid) in btrfs_previous_item()
[all …]
Dextent-tree.c967 struct btrfs_key found_key; in convert_extent_item_v0() local
989 btrfs_item_key_to_cpu(leaf, &found_key, in convert_extent_item_v0()
991 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0()
992 if (found_key.type != BTRFS_EXTENT_REF_V0_KEY) { in convert_extent_item_v0()
7902 struct btrfs_key found_key; in find_first_block_group() local
7921 btrfs_item_key_to_cpu(leaf, &found_key, slot); in find_first_block_group()
7923 if (found_key.objectid >= key->objectid && in find_first_block_group()
7924 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
8059 struct btrfs_key found_key; in btrfs_read_block_groups() local
8087 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_read_block_groups()
[all …]
Dfree-space-cache.c1031 struct btrfs_key found_key; in __btrfs_write_out_cache() local
1034 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in __btrfs_write_out_cache()
1035 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in __btrfs_write_out_cache()
1036 found_key.offset != offset) { in __btrfs_write_out_cache()
Dextent_io.c3933 struct btrfs_key found_key; in extent_fiemap() local
3969 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in extent_fiemap()
3970 found_type = btrfs_key_type(&found_key); in extent_fiemap()
3973 if (found_key.objectid != btrfs_ino(inode) || in extent_fiemap()
3984 last = found_key.offset; in extent_fiemap()