/fs/btrfs/ |
D | dir-item.c | 221 struct btrfs_key found_key; in btrfs_lookup_dir_item() local 239 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_dir_item() 241 if (found_key.objectid != dir || in btrfs_lookup_dir_item() 242 btrfs_key_type(&found_key) != BTRFS_DIR_ITEM_KEY || in btrfs_lookup_dir_item() 243 found_key.offset != key.offset) in btrfs_lookup_dir_item() 291 struct btrfs_key found_key; in btrfs_lookup_xattr() local 307 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_xattr() 309 if (found_key.objectid != dir || in btrfs_lookup_xattr() 310 btrfs_key_type(&found_key) != BTRFS_XATTR_ITEM_KEY || in btrfs_lookup_xattr() 311 found_key.offset != key.offset) in btrfs_lookup_xattr()
|
D | root-tree.c | 81 struct btrfs_key found_key; in btrfs_find_last_root() local 100 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_last_root() 101 if (found_key.objectid != objectid) { in btrfs_find_last_root() 107 memcpy(key, &found_key, sizeof(found_key)); in btrfs_find_last_root() 174 struct btrfs_key found_key; in btrfs_find_dead_roots() local 219 memcpy(&found_key, &key, sizeof(key)); in btrfs_find_dead_roots() 224 &found_key); in btrfs_find_dead_roots()
|
D | file-item.c | 87 struct btrfs_key found_key; in btrfs_lookup_csum() local 107 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 108 if (btrfs_key_type(&found_key) != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 111 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 183 struct btrfs_key found_key; in btrfs_lookup_bio_sums() local 210 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in btrfs_lookup_bio_sums() 213 item_start_offset = found_key.offset; in btrfs_lookup_bio_sums() 620 struct btrfs_key found_key; in btrfs_csum_file_blocks() local 679 btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); in btrfs_csum_file_blocks() 680 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_csum_file_blocks() [all …]
|
D | inode.c | 947 struct btrfs_key found_key; in run_delalloc_nocow() local 972 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow() 974 if (found_key.objectid == inode->i_ino && in run_delalloc_nocow() 975 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow() 993 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow() 995 if (found_key.objectid > inode->i_ino || in run_delalloc_nocow() 996 found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow() 997 found_key.offset > end) in run_delalloc_nocow() 1000 if (found_key.offset > cur_offset) { in run_delalloc_nocow() 1001 extent_end = found_key.offset; in run_delalloc_nocow() [all …]
|
D | inode-map.c | 29 struct btrfs_key found_key; in btrfs_find_highest_inode() local 45 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_highest_inode() 46 *objectid = found_key.objectid; in btrfs_find_highest_inode()
|
D | inode-item.c | 191 struct btrfs_key found_key; in btrfs_lookup_inode() local 198 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode() 199 if (found_key.objectid == location->objectid && in btrfs_lookup_inode() 200 btrfs_key_type(&found_key) == btrfs_key_type(location)) { in btrfs_lookup_inode()
|
D | xattr.c | 160 struct btrfs_key key, found_key; in btrfs_listxattr() local 221 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr() 224 if (found_key.objectid != key.objectid) in btrfs_listxattr() 226 if (btrfs_key_type(&found_key) != BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
|
D | volumes.c | 719 struct btrfs_key found_key; in btrfs_free_dev_extent() local 737 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_free_dev_extent() 740 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent() 807 struct btrfs_key found_key; in find_next_chunk() local 826 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_chunk() 828 if (found_key.objectid != objectid) in find_next_chunk() 833 *offset = found_key.offset + in find_next_chunk() 847 struct btrfs_key found_key; in find_next_devid() local 871 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in find_next_devid() 873 *objectid = found_key.offset + 1; in find_next_devid() [all …]
|
D | print-tree.c | 60 struct btrfs_key found_key; in btrfs_print_leaf() local 90 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf() 92 (unsigned long long)found_key.objectid, in btrfs_print_leaf()
|
D | extent-tree.c | 936 struct btrfs_key key, found_key; in free_extents() local 979 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in free_extents() 981 if (found_key.objectid == op->bytenr && in free_extents() 982 found_key.type == BTRFS_EXTENT_ITEM_KEY && in free_extents() 983 found_key.offset == op->num_bytes) { in free_extents() 1057 btrfs_item_key_to_cpu(leaf, &found_key, cur_slot); in free_extents() 1058 if (found_key.objectid != tmp->bytenr || in free_extents() 1059 found_key.type != BTRFS_EXTENT_ITEM_KEY || in free_extents() 1060 found_key.offset != tmp->num_bytes) in free_extents() 1069 btrfs_item_key_to_cpu(leaf, &found_key, cur_slot+1); in free_extents() [all …]
|
D | tree-log.c | 1077 struct btrfs_key found_key; in replay_one_name() local 1121 btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); in replay_one_name() 1123 if (found_key.objectid == log_key.objectid && in replay_one_name() 1124 found_key.type == log_key.type && in replay_one_name() 1125 found_key.offset == log_key.offset && in replay_one_name() 1388 struct btrfs_key found_key; in replay_dir_deletes() local 1430 btrfs_item_key_to_cpu(path->nodes[0], &found_key, in replay_dir_deletes() 1432 if (found_key.objectid != dirid || in replay_dir_deletes() 1433 found_key.type != dir_key.type) in replay_dir_deletes() 1436 if (found_key.offset > range_end) in replay_dir_deletes() [all …]
|
D | file.c | 280 struct btrfs_key found_key; in btrfs_check_file() 304 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_check_file() 305 if (found_key.objectid != inode->i_ino) in btrfs_check_file() 307 if (found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_check_file() 310 if (found_key.offset < last_offset) { in btrfs_check_file() 315 (unsigned long long)found_key.offset, in btrfs_check_file() 324 extent_end = found_key.offset + in btrfs_check_file() 329 extent_end = found_key.offset + in btrfs_check_file()
|
D | ctree.c | 3316 struct btrfs_key found_key; in btrfs_insert_some_items() local 3357 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_insert_some_items() 3362 if (comp_cpu_keys(&found_key, cpu_key + i) <= 0) in btrfs_insert_some_items() 3805 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 3823 btrfs_item_key(path->nodes[0], &found_key, 0); in btrfs_prev_leaf() 3824 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf() 3858 struct btrfs_key found_key; in btrfs_search_forward() local 3888 btrfs_item_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward() 3950 btrfs_node_key_to_cpu(cur, &found_key, slot); in btrfs_search_forward() 3969 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward() [all …]
|