/linux-3.4.99/fs/btrfs/ |
D | backref.c | 823 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 …]
|
D | export.c | 174 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()
|
D | root-tree.c | 34 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()
|
D | file-item.c | 92 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 …]
|
D | inode-item.c | 221 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()
|
D | xattr.c | 209 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()
|
D | inode.c | 1137 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 …]
|
D | tree-log.c | 1240 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 …]
|
D | print-tree.c | 172 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()
|
D | volumes.c | 1017 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 …]
|
D | scrub.c | 349 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 …]
|
D | backref.h | 42 struct btrfs_path *path, struct btrfs_key *found_key);
|
D | inode-map.c | 525 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()
|
D | ctree.c | 3469 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 …]
|
D | extent-tree.c | 965 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 …]
|
D | free-space-cache.c | 992 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()
|
D | extent_io.c | 3768 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()
|