Home
last modified time | relevance | path

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

/linux-6.15/fs/btrfs/
H A Dfree-space-tree.c211 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
256 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
257 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
261 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
347 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
393 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
394 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
401 found_key.offset); in convert_free_space_to_extents()
1413 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1461 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
[all …]
H A Dinode-item.c405 struct btrfs_key found_key; in btrfs_lookup_inode() local
414 found_key.type == location->type) { in btrfs_lookup_inode()
463 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
530 found_type = found_key.type; in btrfs_truncate_inode_items()
532 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
538 item_end = found_key.offset; in btrfs_truncate_inode_items()
550 found_key.offset, extent_type, in btrfs_truncate_inode_items()
559 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
574 clear_start = found_key.offset; in btrfs_truncate_inode_items()
580 found_key.offset, in btrfs_truncate_inode_items()
[all …]
H A Dexport.c156 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()
H A Dfile-item.c207 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 …]
H A Droot-tree.c71 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()
H A Dbackref.c1015 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()
2237 size = found_key->offset; in extent_from_logical()
2254 logical, logical - found_key->objectid, found_key->objectid, in extent_from_logical()
2557 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 …]
H A Dxattr.c277 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()
H A Dtree-log.c1790 struct btrfs_key found_key; in delete_conflicting_dir_entry() local
2293 struct btrfs_key found_key; in replay_dir_deletes() local
2356 &found_key); in replay_dir_deletes()
4109 struct btrfs_key found_key; in drop_inode_items() local
4132 found_key.offset = 0; in drop_inode_items()
4133 found_key.type = 0; in drop_inode_items()
5540 key = found_key; in log_new_dir_dentries()
6845 struct btrfs_key found_key; in log_new_ancestors() local
6859 ino = found_key.offset; in log_new_ancestors()
7187 struct btrfs_key found_key; in btrfs_recover_log_trees() local
[all …]
H A Dsend.c1035 dir = found_key->offset; in iterate_inode_ref()
1068 found_key->objectid, in iterate_inode_ref()
1069 found_key->type, in iterate_inode_ref()
1070 found_key->offset); in iterate_inode_ref()
2015 struct btrfs_key found_key; in get_first_ref() local
2973 struct btrfs_key found_key; in did_create_dir() local
3228 struct btrfs_key found_key; in can_rmdir() local
4855 struct btrfs_key found_key; in process_all_refs() local
5132 struct btrfs_key found_key; in process_all_new_xattrs() local
6275 key = found_key; in is_extent_unchanged()
[all …]
H A Dinode.c290 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
2079 struct btrfs_key found_key; in run_delalloc_nocow() local
2120 if (found_key.objectid > ino) in run_delalloc_nocow()
2134 found_key.offset > end) in run_delalloc_nocow()
3630 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3632 found_key.offset = 0; in btrfs_orphan_cleanup()
3716 found_key.objectid); in btrfs_orphan_cleanup()
3718 found_key.objectid); in btrfs_orphan_cleanup()
3760 struct btrfs_key found_key; in acls_after_inode_item() local
6002 struct btrfs_key found_key; in btrfs_real_readdir() local
[all …]
H A Draid-stripe-tree.c375 struct btrfs_key found_key; in btrfs_get_raid_extent_offset() local
412 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_get_raid_extent_offset()
413 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset()
414 found_length = found_key.offset; in btrfs_get_raid_extent_offset()
H A Dscrub.c483 struct btrfs_key found_key; in scrub_print_common_warning() local
511 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning()
546 ctx.bytenr = found_key.objectid; in scrub_print_common_warning()
2487 struct btrfs_key found_key; in scrub_enumerate_chunks() local
2527 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2529 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
2532 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
2535 if (found_key.offset >= end) in scrub_enumerate_chunks()
2538 if (found_key.offset < key.offset) in scrub_enumerate_chunks()
2707 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks()
[all …]
H A Dqgroup.c377 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
422 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
449 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()
997 struct btrfs_key found_key; in btrfs_quota_enable() local
1135 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable()
[all …]
H A Dctree.h598 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);
704 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ argument
707 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
H A Dprint-tree.c244 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()
H A Dctree.c1645 struct btrfs_key *found_key) in btrfs_find_item() argument
1652 ASSERT(found_key); in btrfs_find_item()
1671 if (found_key->type != key.type || in btrfs_find_item()
1672 found_key->objectid != key.objectid) in btrfs_find_item()
2338 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
4999 struct btrfs_key found_key; in btrfs_previous_item() local
5020 if (found_key.objectid < min_objectid) in btrfs_previous_item()
5022 if (found_key.type == type) in btrfs_previous_item()
5025 found_key.type < type) in btrfs_previous_item()
5040 struct btrfs_key found_key; in btrfs_previous_extent_item() local
[all …]
H A Ddev-replace.c445 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()
H A Dvolumes.c1823 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1845 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1847 key = found_key; in btrfs_free_dev_extent()
1891 struct btrfs_key found_key; in find_next_devid() local
3479 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local
3540 if (found_key.offset == 0) in btrfs_relocate_sys_chunks()
4062 struct btrfs_key found_key; in __btrfs_balance() local
4194 found_key.offset); in __btrfs_balance()
4210 found_key.offset); in __btrfs_balance()
4220 if (found_key.offset == 0) in __btrfs_balance()
[all …]
H A Dtree-checker.c2228 struct btrfs_key found_key; in btrfs_verify_level_key() local
2263 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
2265 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()
2275 found_key.objectid, found_key.type, in btrfs_verify_level_key()
2276 found_key.offset); in btrfs_verify_level_key()
H A Dblock-group.c581 struct btrfs_key *found_key) in sample_block_group_extent_item() argument
613 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item()
615 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item()
616 found_key->objectid >= block_group->start && in sample_block_group_extent_item()
617 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item()
621 if (found_key->objectid >= search_end) { in sample_block_group_extent_item()
2094 struct btrfs_key found_key; in find_first_block_group() local
2096 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group()
2097 if (found_key.objectid >= key->objectid && in find_first_block_group()
2098 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
[all …]
H A Dzoned.c1213 struct btrfs_key found_key; in calculate_alloc_pointer() local
1257 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer()
1259 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer()
1260 length = found_key.offset; in calculate_alloc_pointer()
1264 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer()
1265 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer()
1268 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
H A Dbackref.h217 struct btrfs_path *path, struct btrfs_key *found_key,
H A Ddisk-io.c431 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()
4933 struct btrfs_key found_key; in btrfs_init_root_free_objectid() local
4956 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid()
4957 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
H A Dfree-space-cache.c1169 struct btrfs_key found_key; in update_cache_item() local
1172 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item()
1173 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item()
1174 found_key.offset != offset) { in update_cache_item()