| /fs/btrfs/ |
| A D | free-space-tree.c | 208 struct btrfs_key key, found_key; in btrfs_convert_free_space_to_bitmaps() local 256 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_bitmaps() 257 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_bitmaps() 261 last = div_u64(found_key.objectid + found_key.offset - start, in btrfs_convert_free_space_to_bitmaps() 352 struct btrfs_key key, found_key; in btrfs_convert_free_space_to_extents() local 401 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_extents() 402 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_extents() 409 found_key.offset); in btrfs_convert_free_space_to_extents() 1469 struct btrfs_key key, found_key; in btrfs_remove_block_group_free_space() local 1520 ASSERT(found_key.objectid < end); in btrfs_remove_block_group_free_space() [all …]
|
| A D | inode-item.c | 393 struct btrfs_key found_key; in btrfs_lookup_inode() local 402 found_key.type == location->type) { in btrfs_lookup_inode() 451 struct btrfs_key found_key; in btrfs_truncate_inode_items() local 518 found_type = found_key.type; in btrfs_truncate_inode_items() 520 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items() 526 item_end = found_key.offset; in btrfs_truncate_inode_items() 538 found_key.offset, extent_type, in btrfs_truncate_inode_items() 547 if (found_key.offset >= new_size) in btrfs_truncate_inode_items() 562 clear_start = found_key.offset; in btrfs_truncate_inode_items() 568 found_key.offset, in btrfs_truncate_inode_items() [all …]
|
| A D | export.c | 156 struct btrfs_key found_key; in btrfs_get_parent() local 194 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 195 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 200 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 205 key.objectid = found_key.offset; in btrfs_get_parent() 209 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 211 found_key.offset, 0); in btrfs_get_parent()
|
| A D | file-item.c | 207 struct btrfs_key found_key; in btrfs_lookup_csum() local 226 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 227 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 230 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 1018 struct btrfs_key found_key; in find_next_csum_offset() local 1035 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset() 1036 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset() 1039 *next_offset = found_key.offset; in find_next_csum_offset() 1050 struct btrfs_key found_key; in btrfs_csum_file_blocks() local 1121 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks() [all …]
|
| A D | backref.c | 1015 struct btrfs_key found_key; in add_inline_refs() local 2050 struct btrfs_key found_key; in btrfs_find_one_extref() local 2135 struct btrfs_key found_key; in btrfs_ref_to_path() local 2158 next_inum = found_key.offset; in btrfs_ref_to_path() 2236 size = found_key->offset; in extent_from_logical() 2252 logical, logical - found_key->objectid, found_key->objectid, in extent_from_logical() 2554 struct btrfs_key found_key; in iterate_inodes_from_logical() local 2594 struct btrfs_key found_key; in iterate_inode_refs() local 2599 &found_key); in iterate_inode_refs() 2609 parent = found_key.offset; in iterate_inode_refs() [all …]
|
| A D | root-tree.c | 71 struct btrfs_key found_key; in btrfs_find_root() local 101 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 102 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 103 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root() 111 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
|
| A D | xattr.c | 277 struct btrfs_key found_key; in btrfs_listxattr() local 301 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in btrfs_listxattr() 312 if (found_key.objectid != key.objectid) in btrfs_listxattr() 314 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr() 316 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
|
| A D | send.c | 1024 dir = found_key->offset; in iterate_inode_ref() 1057 found_key->objectid, in iterate_inode_ref() 1058 found_key->type, in iterate_inode_ref() 1059 found_key->offset); in iterate_inode_ref() 1996 struct btrfs_key found_key; in get_first_ref() local 2935 struct btrfs_key found_key; in did_create_dir() local 3190 struct btrfs_key found_key; in can_rmdir() local 4808 struct btrfs_key found_key; in process_all_refs() local 5085 struct btrfs_key found_key; in process_all_new_xattrs() local 6248 key = found_key; in is_extent_unchanged() [all …]
|
| A D | tree-log.c | 1837 struct btrfs_key found_key; in delete_conflicting_dir_entry() local 2341 struct btrfs_key found_key; in replay_dir_deletes() local 2407 &found_key); in replay_dir_deletes() 4167 struct btrfs_key found_key; in drop_inode_items() local 4190 found_key.offset = 0; in drop_inode_items() 4191 found_key.type = 0; in drop_inode_items() 5518 struct btrfs_key found_key; in log_new_dir_dentries() local 5591 key = found_key; in log_new_dir_dentries() 6909 struct btrfs_key found_key; in log_new_ancestors() local 6923 ino = found_key.offset; in log_new_ancestors() [all …]
|
| A D | inode.c | 290 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 2066 struct btrfs_key found_key; in run_delalloc_nocow() local 2107 if (found_key.objectid > ino) in run_delalloc_nocow() 2121 found_key.offset > end) in run_delalloc_nocow() 3616 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup() 3618 found_key.offset = 0; in btrfs_orphan_cleanup() 3702 found_key.objectid); in btrfs_orphan_cleanup() 3704 found_key.objectid); in btrfs_orphan_cleanup() 3749 struct btrfs_key found_key; in acls_after_inode_item() local 6103 struct btrfs_key found_key; in btrfs_real_readdir() local [all …]
|
| A D | raid-stripe-tree.c | 378 struct btrfs_key found_key; in btrfs_get_raid_extent_offset() local 415 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_get_raid_extent_offset() 416 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset() 417 found_length = found_key.offset; in btrfs_get_raid_extent_offset()
|
| A D | qgroup.c | 388 struct btrfs_key found_key; in btrfs_read_qgroup_config() local 427 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 451 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 492 switch (found_key.type) { in btrfs_read_qgroup_config() 541 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 546 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 558 found_key.offset); in btrfs_read_qgroup_config() 563 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 996 struct btrfs_key found_key; in btrfs_quota_enable() local 1124 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable() [all …]
|
| A D | scrub.c | 589 struct btrfs_key found_key; in scrub_print_common_warning() local 617 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning() 652 ctx.bytenr = found_key.objectid; in scrub_print_common_warning() 2598 struct btrfs_key found_key; in scrub_enumerate_chunks() local 2638 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks() 2640 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks() 2643 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks() 2646 if (found_key.offset >= end) in scrub_enumerate_chunks() 2649 if (found_key.offset < key.offset) in scrub_enumerate_chunks() 2818 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks() [all …]
|
| A D | ctree.c | 1656 struct btrfs_key *found_key) in btrfs_find_item() argument 1663 ASSERT(found_key); in btrfs_find_item() 1682 if (found_key->type != key.type || in btrfs_find_item() 1683 found_key->objectid != key.objectid) in btrfs_find_item() 2347 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 4986 struct btrfs_key found_key; in btrfs_previous_item() local 5007 if (found_key.objectid < min_objectid) in btrfs_previous_item() 5009 if (found_key.type == type) in btrfs_previous_item() 5012 found_key.type < type) in btrfs_previous_item() 5027 struct btrfs_key found_key; in btrfs_previous_extent_item() local [all …]
|
| A D | print-tree.c | 244 struct btrfs_key found_key; in btrfs_print_leaf() local 273 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf() 275 found_key.objectid, in btrfs_print_leaf()
|
| A D | ctree.h | 592 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key); 698 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ argument 701 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
|
| A D | dev-replace.c | 445 struct btrfs_key found_key; in mark_block_group_to_copy() local 501 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in mark_block_group_to_copy() 504 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy() 507 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in mark_block_group_to_copy() 510 if (found_key.offset < key.offset) in mark_block_group_to_copy()
|
| A D | volumes.c | 1831 struct btrfs_key found_key; in btrfs_free_dev_extent() local 1853 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent() 1855 key = found_key; in btrfs_free_dev_extent() 1899 struct btrfs_key found_key; in find_next_devid() local 3503 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local 3565 if (found_key.offset == 0) in btrfs_relocate_sys_chunks() 4081 struct btrfs_key found_key; in __btrfs_balance() local 4213 found_key.offset); in __btrfs_balance() 4229 found_key.offset); in __btrfs_balance() 4239 if (found_key.offset == 0) in __btrfs_balance() [all …]
|
| A D | tree-checker.c | 2228 struct btrfs_key found_key; in btrfs_verify_level_key() local 2262 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 2264 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 2266 ret = btrfs_comp_cpu_keys(&check->first_key, &found_key); in btrfs_verify_level_key() 2273 found_key.objectid, found_key.type, in btrfs_verify_level_key() 2274 found_key.offset); in btrfs_verify_level_key()
|
| A D | block-group.c | 593 struct btrfs_key *found_key) in sample_block_group_extent_item() argument 625 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item() 627 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item() 628 found_key->objectid >= block_group->start && in sample_block_group_extent_item() 629 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item() 633 if (found_key->objectid >= search_end) { in sample_block_group_extent_item() 2099 struct btrfs_key found_key; in find_first_block_group() local 2101 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group() 2102 if (found_key.objectid >= key->objectid && in find_first_block_group() 2103 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group() [all …]
|
| A D | zoned.c | 1220 struct btrfs_key found_key; in calculate_alloc_pointer() local 1264 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer() 1266 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer() 1267 length = found_key.offset; in calculate_alloc_pointer() 1271 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer() 1272 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer() 1275 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
|
| A D | backref.h | 217 struct btrfs_path *path, struct btrfs_key *found_key,
|
| A D | disk-io.c | 431 struct btrfs_key found_key; in btrfs_validate_extent_buffer() local 434 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer() 436 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer() 437 if (unlikely(btrfs_comp_cpu_keys(expect_key, &found_key))) { in btrfs_validate_extent_buffer() 443 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer() 444 found_key.offset); in btrfs_validate_extent_buffer() 4870 struct btrfs_key found_key; in btrfs_init_root_free_objectid() local 4893 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid() 4894 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
|
| A D | free-space-cache.c | 1168 struct btrfs_key found_key; in update_cache_item() local 1171 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item() 1172 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item() 1173 found_key.offset != offset) { in update_cache_item()
|