/linux-6.3-rc2/fs/btrfs/ |
A D | free-space-tree.c | 212 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local 257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 258 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 262 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps() 350 struct btrfs_key key, found_key; in convert_free_space_to_extents() local 396 ASSERT(found_key.objectid < end); in convert_free_space_to_extents() 397 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents() 404 found_key.offset); in convert_free_space_to_extents() 1353 struct btrfs_key key, found_key; in remove_block_group_free_space() local 1401 ASSERT(found_key.objectid < end); in remove_block_group_free_space() [all …]
|
A D | inode-item.c | 410 struct btrfs_key found_key; in btrfs_lookup_inode() local 419 found_key.type == location->type) { in btrfs_lookup_inode() 468 struct btrfs_key found_key; in btrfs_truncate_inode_items() local 535 found_type = found_key.type; in btrfs_truncate_inode_items() 537 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items() 543 item_end = found_key.offset; in btrfs_truncate_inode_items() 555 found_key.offset, extent_type, in btrfs_truncate_inode_items() 564 if (found_key.offset >= new_size) in btrfs_truncate_inode_items() 579 clear_start = found_key.offset; in btrfs_truncate_inode_items() 585 found_key.offset, in btrfs_truncate_inode_items() [all …]
|
A D | export.c | 156 struct btrfs_key found_key; in btrfs_get_parent() local 187 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 188 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 193 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 198 key.objectid = found_key.offset; in btrfs_get_parent() 202 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 204 found_key.offset, 0); in btrfs_get_parent()
|
A D | file-item.c | 211 struct btrfs_key found_key; in btrfs_lookup_csum() local 230 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 231 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum() 234 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum() 1088 struct btrfs_key found_key; in find_next_csum_offset() local 1105 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset() 1106 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset() 1109 *next_offset = found_key.offset; in find_next_csum_offset() 1120 struct btrfs_key found_key; in btrfs_csum_file_blocks() local 1191 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks() [all …]
|
A D | root-tree.c | 71 struct btrfs_key found_key; in btrfs_find_root() local 94 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root() 95 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 96 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root() 104 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
|
A D | backref.c | 1024 struct btrfs_key found_key; in add_inline_refs() local 2014 struct btrfs_key found_key; in btrfs_find_one_extref() local 2099 struct btrfs_key found_key; in btrfs_ref_to_path() local 2122 next_inum = found_key.offset; in btrfs_ref_to_path() 2194 size = found_key->offset; in extent_from_logical() 2212 logical, logical - found_key->objectid, found_key->objectid, in extent_from_logical() 2515 struct btrfs_key found_key; in iterate_inodes_from_logical() local 2552 struct btrfs_key found_key; in iterate_inode_refs() local 2557 &found_key); in iterate_inode_refs() 2567 parent = found_key.offset; in iterate_inode_refs() [all …]
|
A D | xattr.c | 279 struct btrfs_key found_key; in btrfs_listxattr() local 303 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in btrfs_listxattr() 314 if (found_key.objectid != key.objectid) in btrfs_listxattr() 316 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr() 318 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
|
A D | send.c | 1042 dir = found_key->offset; in iterate_inode_ref() 2009 struct btrfs_key found_key; in get_first_ref() local 2043 parent_dir = found_key.offset; in get_first_ref() 2934 struct btrfs_key found_key; in did_create_dir() local 3184 struct btrfs_key found_key; in can_rmdir() local 4802 struct btrfs_key found_key; in process_all_refs() local 5106 struct btrfs_key found_key; in process_all_new_xattrs() local 6166 struct btrfs_key found_key; in is_extent_unchanged() local 6246 key = found_key; in is_extent_unchanged() 6329 key = found_key; in is_extent_unchanged() [all …]
|
A D | qgroup.c | 355 struct btrfs_key found_key; in btrfs_read_qgroup_config() local 400 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 427 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config() 447 switch (found_key.type) { in btrfs_read_qgroup_config() 494 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config() 499 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 506 found_key.offset); in btrfs_read_qgroup_config() 510 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 960 struct btrfs_key found_key; in btrfs_quota_enable() local 1092 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable() [all …]
|
A D | tree-log.c | 1787 struct btrfs_key found_key; in delete_conflicting_dir_entry() local 2292 struct btrfs_key found_key; in replay_dir_deletes() local 2355 &found_key); in replay_dir_deletes() 4077 struct btrfs_key found_key; in drop_inode_items() local 4100 found_key.offset = 0; in drop_inode_items() 4101 found_key.type = 0; in drop_inode_items() 6796 struct btrfs_key found_key; in log_new_ancestors() local 6811 ino = found_key.offset; in log_new_ancestors() 6929 struct btrfs_key found_key; in log_all_new_ancestors() local 7138 struct btrfs_key found_key; in btrfs_recover_log_trees() local [all …]
|
A D | inode.c | 1955 struct btrfs_key found_key; in run_delalloc_nocow() local 2002 if (found_key.objectid > ino) in run_delalloc_nocow() 2016 found_key.offset > end) in run_delalloc_nocow() 3615 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup() 3617 found_key.offset = 0; in btrfs_orphan_cleanup() 3697 found_key.objectid); in btrfs_orphan_cleanup() 3699 found_key.objectid); in btrfs_orphan_cleanup() 3741 struct btrfs_key found_key; in acls_after_inode_item() local 5860 struct btrfs_key found_key; in btrfs_real_readdir() local 6798 struct btrfs_key found_key; in btrfs_get_extent() local [all …]
|
A D | ctree.c | 1697 struct btrfs_key *found_key) in btrfs_find_item() argument 1704 ASSERT(found_key); in btrfs_find_item() 1723 if (found_key->type != key.type || in btrfs_find_item() 4492 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local 4515 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf() 4555 struct btrfs_key found_key; in btrfs_search_forward() local 4649 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward() 4949 struct btrfs_key found_key; in btrfs_previous_item() local 4972 if (found_key.type == type) in btrfs_previous_item() 4975 found_key.type < type) in btrfs_previous_item() [all …]
|
A D | print-tree.c | 216 struct btrfs_key found_key; in btrfs_print_leaf() local 245 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf() 247 found_key.objectid, in btrfs_print_leaf()
|
A D | ctree.h | 569 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key); 678 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ argument 681 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
|
A D | dev-replace.c | 458 struct btrfs_key found_key; in mark_block_group_to_copy() local 514 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in mark_block_group_to_copy() 517 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy() 520 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in mark_block_group_to_copy() 523 if (found_key.offset < key.offset) in mark_block_group_to_copy()
|
A D | scrub.c | 906 struct btrfs_key found_key; in scrub_print_warning() local 941 swarn.extent_item_size = found_key.offset; in scrub_print_warning() 967 ctx.bytenr = found_key.objectid; in scrub_print_warning() 3862 struct btrfs_key found_key; in scrub_enumerate_chunks() local 3902 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks() 3904 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks() 3907 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks() 3910 if (found_key.offset >= end) in scrub_enumerate_chunks() 3913 if (found_key.offset < key.offset) in scrub_enumerate_chunks() 4076 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks() [all …]
|
A D | volumes.c | 1728 struct btrfs_key found_key; in btrfs_free_dev_extent() local 1750 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent() 1752 key = found_key; in btrfs_free_dev_extent() 1797 struct btrfs_key found_key; in find_next_devid() local 3317 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local 3367 if (found_key.offset == 0) in btrfs_relocate_sys_chunks() 3854 struct btrfs_key found_key; in __btrfs_balance() local 3986 found_key.offset); in __btrfs_balance() 4002 found_key.offset); in __btrfs_balance() 4012 if (found_key.offset == 0) in __btrfs_balance() [all …]
|
A D | disk-io.c | 188 struct btrfs_key found_key; in btrfs_verify_level_key() local 223 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 225 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 235 found_key.objectid, found_key.type, in btrfs_verify_level_key() 236 found_key.offset); in btrfs_verify_level_key() 556 struct btrfs_key found_key; in validate_extent_buffer() local 559 btrfs_node_key_to_cpu(eb, &found_key, 0); in validate_extent_buffer() 561 btrfs_item_key_to_cpu(eb, &found_key, 0); in validate_extent_buffer() 568 found_key.objectid, found_key.type, in validate_extent_buffer() 569 found_key.offset); in validate_extent_buffer() [all …]
|
A D | block-group.c | 561 struct btrfs_key *found_key) in sample_block_group_extent_item() argument 593 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item() 595 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item() 596 found_key->objectid >= block_group->start && in sample_block_group_extent_item() 597 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item() 601 if (found_key->objectid >= search_end) { in sample_block_group_extent_item() 1928 struct btrfs_key found_key; in find_first_block_group() local 1930 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group() 1931 if (found_key.objectid >= key->objectid && in find_first_block_group() 1932 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group() [all …]
|
A D | zoned.c | 1216 struct btrfs_key found_key; in calculate_alloc_pointer() local 1260 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer() 1262 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer() 1263 length = found_key.offset; in calculate_alloc_pointer() 1267 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer() 1268 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer() 1272 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
|
A D | backref.h | 199 struct btrfs_path *path, struct btrfs_key *found_key,
|
A D | free-space-cache.c | 1180 struct btrfs_key found_key; in update_cache_item() local 1183 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item() 1184 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item() 1185 found_key.offset != offset) { in update_cache_item()
|