Home
last modified time | relevance | path

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

/linux-3.4.99/fs/btrfs/
Dbackref.c823 struct btrfs_key *found_key) in __inode_info() argument
845 btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); in __inode_info()
846 if (found_key->type != key.type || found_key->objectid != key.objectid) in __inode_info()
865 struct btrfs_key *found_key) in inode_ref_info() argument
868 found_key); in inode_ref_info()
896 struct btrfs_key found_key; in iref_to_path() local
913 ret = inode_ref_info(parent, 0, fs_root, path, &found_key); in iref_to_path()
918 next_inum = found_key.offset; in iref_to_path()
956 struct btrfs_path *path, struct btrfs_key *found_key) in extent_from_logical() argument
977 btrfs_item_key_to_cpu(path->nodes[0], found_key, path->slots[0]); in extent_from_logical()
[all …]
Dexport.c174 struct btrfs_key found_key; in btrfs_get_parent() local
205 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
206 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
211 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
216 key.objectid = found_key.offset; in btrfs_get_parent()
220 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
222 found_key.offset, 0, 0); in btrfs_get_parent()
Droot-tree.c34 struct btrfs_key found_key; in btrfs_find_last_root() local
57 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_last_root()
58 if (found_key.objectid != objectid || in btrfs_find_last_root()
59 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_last_root()
67 memcpy(key, &found_key, sizeof(found_key)); in btrfs_find_last_root()
140 struct btrfs_key found_key; in btrfs_find_dead_roots() local
184 memcpy(&found_key, &key, sizeof(key)); in btrfs_find_dead_roots()
189 &found_key); in btrfs_find_dead_roots()
Dfile-item.c92 struct btrfs_key found_key; in btrfs_lookup_csum() local
111 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
112 if (btrfs_key_type(&found_key) != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
115 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
203 struct btrfs_key found_key; in __btrfs_lookup_bio_sums() local
231 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in __btrfs_lookup_bio_sums()
234 item_start_offset = found_key.offset; in __btrfs_lookup_bio_sums()
674 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
733 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks()
734 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_csum_file_blocks()
[all …]
Dinode-item.c221 struct btrfs_key found_key; in btrfs_lookup_inode() local
228 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()
229 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
230 btrfs_key_type(&found_key) == btrfs_key_type(location)) { in btrfs_lookup_inode()
Dxattr.c209 struct btrfs_key key, found_key; in btrfs_listxattr() local
257 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
260 if (found_key.objectid != key.objectid) in btrfs_listxattr()
262 if (btrfs_key_type(&found_key) != BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
Dinode.c1137 struct btrfs_key found_key; in run_delalloc_nocow() local
1181 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1183 if (found_key.objectid == ino && in run_delalloc_nocow()
1184 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1204 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1206 if (found_key.objectid > ino || in run_delalloc_nocow()
1207 found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1208 found_key.offset > end) in run_delalloc_nocow()
1211 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1212 extent_end = found_key.offset; in run_delalloc_nocow()
[all …]
Dtree-log.c1240 struct btrfs_key found_key; in replay_one_name() local
1288 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name()
1290 if (found_key.objectid == log_key.objectid && in replay_one_name()
1291 found_key.type == log_key.type && in replay_one_name()
1292 found_key.offset == log_key.offset && in replay_one_name()
1567 struct btrfs_key found_key; in replay_dir_deletes() local
1613 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes()
1615 if (found_key.objectid != dirid || in replay_dir_deletes()
1616 found_key.type != dir_key.type) in replay_dir_deletes()
1619 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()
Dvolumes.c1017 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1036 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent()
1039 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1041 key = found_key; in btrfs_free_dev_extent()
1120 struct btrfs_key found_key; in find_next_chunk() local
1140 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_chunk()
1142 if (found_key.objectid != objectid) in find_next_chunk()
1147 *offset = found_key.offset + in find_next_chunk()
1161 struct btrfs_key found_key; in find_next_devid() local
1185 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid()
[all …]
Dscrub.c349 struct btrfs_key found_key; in scrub_print_warning() local
376 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key); in scrub_print_warning()
380 extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_warning()
381 swarn.extent_item_size = found_key.offset; in scrub_print_warning()
404 iterate_extent_inodes(fs_info, found_key.objectid, in scrub_print_warning()
2060 struct btrfs_key found_key; in scrub_enumerate_chunks() local
2092 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2094 if (found_key.objectid != sdev->dev->devid) in scrub_enumerate_chunks()
2097 if (btrfs_key_type(&found_key) != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
2100 if (found_key.offset >= end) in scrub_enumerate_chunks()
[all …]
Dbackref.h42 struct btrfs_path *path, struct btrfs_key *found_key);
Dinode-map.c525 struct btrfs_key found_key; in btrfs_find_highest_objectid() local
542 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_objectid()
543 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
Dctree.c3469 struct btrfs_key found_key; in btrfs_insert_some_items() local
3513 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_insert_some_items()
3518 if (btrfs_comp_cpu_keys(&found_key, cpu_key + i) <= 0) in btrfs_insert_some_items()
3936 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
3954 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf()
3955 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf()
3989 struct btrfs_key found_key; in btrfs_search_forward() local
4019 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4081 btrfs_node_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward()
4101 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward()
[all …]
Dextent-tree.c965 struct btrfs_key found_key; in convert_extent_item_v0() local
987 btrfs_item_key_to_cpu(leaf, &found_key, in convert_extent_item_v0()
989 BUG_ON(key.objectid != found_key.objectid); in convert_extent_item_v0()
990 if (found_key.type != BTRFS_EXTENT_REF_V0_KEY) { in convert_extent_item_v0()
7456 struct btrfs_key found_key; in find_first_block_group() local
7475 btrfs_item_key_to_cpu(leaf, &found_key, slot); in find_first_block_group()
7477 if (found_key.objectid >= key->objectid && in find_first_block_group()
7478 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
7611 struct btrfs_key found_key; in btrfs_read_block_groups() local
7639 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_read_block_groups()
[all …]
Dfree-space-cache.c992 struct btrfs_key found_key; in __btrfs_write_out_cache() local
995 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in __btrfs_write_out_cache()
996 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in __btrfs_write_out_cache()
997 found_key.offset != offset) { in __btrfs_write_out_cache()
Dextent_io.c3768 struct btrfs_key found_key; in extent_fiemap() local
3804 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in extent_fiemap()
3805 found_type = btrfs_key_type(&found_key); in extent_fiemap()
3808 if (found_key.objectid != btrfs_ino(inode) || in extent_fiemap()
3819 last = found_key.offset; in extent_fiemap()