Home
last modified time | relevance | path

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

/linux/fs/btrfs/
A Dfree-space-tree.c212 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()
1417 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1465 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
[all …]
A Dinode-item.c409 struct btrfs_key found_key; in btrfs_lookup_inode() local
418 found_key.type == location->type) { in btrfs_lookup_inode()
467 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
534 found_type = found_key.type; in btrfs_truncate_inode_items()
536 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
542 item_end = found_key.offset; in btrfs_truncate_inode_items()
554 found_key.offset, extent_type, in btrfs_truncate_inode_items()
563 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
578 clear_start = found_key.offset; in btrfs_truncate_inode_items()
584 found_key.offset, in btrfs_truncate_inode_items()
[all …]
A Dexport.c155 struct btrfs_key found_key; in btrfs_get_parent() local
193 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
194 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
199 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
204 key.objectid = found_key.offset; in btrfs_get_parent()
208 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
210 found_key.offset, 0); in btrfs_get_parent()
A Dfile-item.c209 struct btrfs_key found_key; in btrfs_lookup_csum() local
228 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
229 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
232 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
1024 struct btrfs_key found_key; in find_next_csum_offset() local
1041 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset()
1042 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset()
1045 *next_offset = found_key.offset; in find_next_csum_offset()
1056 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
1127 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks()
[all …]
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()
A Dbackref.c1016 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 …]
A Draid-stripe-tree.c193 struct btrfs_key found_key; in btrfs_get_raid_extent_offset() local
230 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_get_raid_extent_offset()
231 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset()
232 found_length = found_key.offset; in btrfs_get_raid_extent_offset()
A Dxattr.c279 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 Dsend.c1047 dir = found_key->offset; in iterate_inode_ref()
1081 found_key->objectid, in iterate_inode_ref()
1082 found_key->type, in iterate_inode_ref()
1083 found_key->offset); in iterate_inode_ref()
2034 struct btrfs_key found_key; in get_first_ref() local
2958 struct btrfs_key found_key; in did_create_dir() local
3208 struct btrfs_key found_key; in can_rmdir() local
4830 struct btrfs_key found_key; in process_all_refs() local
5134 struct btrfs_key found_key; in process_all_new_xattrs() local
6321 key = found_key; in is_extent_unchanged()
[all …]
A Dtree-log.c1805 struct btrfs_key found_key; in delete_conflicting_dir_entry() local
2310 struct btrfs_key found_key; in replay_dir_deletes() local
2373 &found_key); in replay_dir_deletes()
4129 struct btrfs_key found_key; in drop_inode_items() local
4152 found_key.offset = 0; in drop_inode_items()
4153 found_key.type = 0; in drop_inode_items()
5564 key = found_key; in log_new_dir_dentries()
6874 struct btrfs_key found_key; in log_new_ancestors() local
6888 ino = found_key.offset; in log_new_ancestors()
7224 struct btrfs_key found_key; in btrfs_recover_log_trees() local
[all …]
A Dinode.c290 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
2044 struct btrfs_key found_key; in run_delalloc_nocow() local
2087 if (found_key.objectid > ino) in run_delalloc_nocow()
2101 found_key.offset > end) in run_delalloc_nocow()
3582 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3584 found_key.offset = 0; in btrfs_orphan_cleanup()
3668 found_key.objectid); in btrfs_orphan_cleanup()
3670 found_key.objectid); in btrfs_orphan_cleanup()
3712 struct btrfs_key found_key; in acls_after_inode_item() local
5930 struct btrfs_key found_key; in btrfs_real_readdir() local
[all …]
A Dctree.c1677 struct btrfs_key *found_key) in btrfs_find_item() argument
1684 ASSERT(found_key); in btrfs_find_item()
1703 if (found_key->type != key.type || in btrfs_find_item()
1704 found_key->objectid != key.objectid) in btrfs_find_item()
2366 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
4638 struct btrfs_key found_key; in btrfs_search_forward() local
4732 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward()
5032 struct btrfs_key found_key; in btrfs_previous_item() local
5055 if (found_key.type == type) in btrfs_previous_item()
5058 found_key.type < type) in btrfs_previous_item()
[all …]
A Dqgroup.c378 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
423 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
450 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config()
493 switch (found_key.type) { in btrfs_read_qgroup_config()
542 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
547 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
559 found_key.offset); in btrfs_read_qgroup_config()
564 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config()
1014 struct btrfs_key found_key; in btrfs_quota_enable() local
1153 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable()
[all …]
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()
2482 struct btrfs_key found_key; in scrub_enumerate_chunks() local
2522 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
2524 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
2527 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks()
2530 if (found_key.offset >= end) in scrub_enumerate_chunks()
2533 if (found_key.offset < key.offset) in scrub_enumerate_chunks()
2702 dev_replace->cursor_left = found_key.offset; in scrub_enumerate_chunks()
[all …]
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()
A Dctree.h594 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);
700 #define btrfs_for_each_slot(root, key, found_key, path, iter_ret) \ argument
703 (iter_ret = btrfs_get_next_valid_item((root), (found_key), (path))) == 0; \
A Dvolumes.c1769 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1791 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1793 key = found_key; in btrfs_free_dev_extent()
1837 struct btrfs_key found_key; in find_next_devid() local
3434 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local
3495 if (found_key.offset == 0) in btrfs_relocate_sys_chunks()
4020 struct btrfs_key found_key; in __btrfs_balance() local
4152 found_key.offset); in __btrfs_balance()
4168 found_key.offset); in __btrfs_balance()
4178 if (found_key.offset == 0) in __btrfs_balance()
[all …]
A Ddev-replace.c457 struct btrfs_key found_key; in mark_block_group_to_copy() local
513 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) { in mark_block_group_to_copy()
516 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy()
519 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in mark_block_group_to_copy()
522 if (found_key.offset < key.offset) in mark_block_group_to_copy()
A Dtree-checker.c2191 struct btrfs_key found_key; in btrfs_verify_level_key() local
2226 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
2228 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
2229 ret = btrfs_comp_cpu_keys(first_key, &found_key); in btrfs_verify_level_key()
2238 found_key.objectid, found_key.type, in btrfs_verify_level_key()
2239 found_key.offset); in btrfs_verify_level_key()
A Dblock-group.c583 struct btrfs_key *found_key) in sample_block_group_extent_item() argument
615 btrfs_for_each_slot(extent_root, &search_key, found_key, path, ret) { in sample_block_group_extent_item()
617 if (found_key->type == BTRFS_EXTENT_ITEM_KEY && in sample_block_group_extent_item()
618 found_key->objectid >= block_group->start && in sample_block_group_extent_item()
619 found_key->objectid + found_key->offset <= search_end) in sample_block_group_extent_item()
623 if (found_key->objectid >= search_end) { in sample_block_group_extent_item()
2062 struct btrfs_key found_key; in find_first_block_group() local
2064 btrfs_for_each_slot(root, key, &found_key, path, ret) { in find_first_block_group()
2065 if (found_key.objectid >= key->objectid && in find_first_block_group()
2066 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
[all …]
A Dzoned.c1209 struct btrfs_key found_key; in calculate_alloc_pointer() local
1253 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer()
1255 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer()
1256 length = found_key.offset; in calculate_alloc_pointer()
1260 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer()
1261 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer()
1264 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
A Dbackref.h217 struct btrfs_path *path, struct btrfs_key *found_key,
A Ddisk-io.c433 struct btrfs_key found_key; in btrfs_validate_extent_buffer() local
436 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer()
438 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_validate_extent_buffer()
439 if (unlikely(btrfs_comp_cpu_keys(expect_key, &found_key))) { in btrfs_validate_extent_buffer()
445 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer()
446 found_key.offset); in btrfs_validate_extent_buffer()
4898 struct btrfs_key found_key; in btrfs_init_root_free_objectid() local
4922 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid()
4923 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
A Dfree-space-cache.c1171 struct btrfs_key found_key; in update_cache_item() local
1174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item()
1175 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item()
1176 found_key.offset != offset) { in update_cache_item()

Completed in 148 milliseconds