Home
last modified time | relevance | path

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

/linux/fs/btrfs/
A Dfree-space-tree.c193 struct btrfs_key key, found_key; in convert_free_space_to_bitmaps() local
238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
239 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
243 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
331 struct btrfs_key key, found_key; in convert_free_space_to_extents() local
377 ASSERT(found_key.objectid < end); in convert_free_space_to_extents()
378 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_extents()
385 found_key.offset); in convert_free_space_to_extents()
1324 struct btrfs_key key, found_key; in remove_block_group_free_space() local
1372 ASSERT(found_key.objectid < end); in remove_block_group_free_space()
[all …]
A Dexport.c143 struct btrfs_key found_key; in btrfs_get_parent() local
174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent()
175 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
180 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
185 key.objectid = found_key.offset; in btrfs_get_parent()
189 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent()
191 found_key.offset, 0, 0); in btrfs_get_parent()
A Dfile-item.c186 struct btrfs_key found_key; in btrfs_lookup_csum() local
205 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
206 if (found_key.type != BTRFS_EXTENT_CSUM_KEY) in btrfs_lookup_csum()
209 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
940 struct btrfs_key found_key; in find_next_csum_offset() local
957 if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in find_next_csum_offset()
958 found_key.type != BTRFS_EXTENT_CSUM_KEY) in find_next_csum_offset()
961 *next_offset = found_key.offset; in find_next_csum_offset()
972 struct btrfs_key found_key; in btrfs_csum_file_blocks() local
1043 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks()
[all …]
A Dbackref.c940 struct btrfs_key found_key; in add_inline_refs() local
1593 struct btrfs_key found_key; local
1678 struct btrfs_key found_key; local
1701 next_inum = found_key.offset;
1772 size = found_key->offset;
1790 logical, logical - found_key->objectid, found_key->objectid,
2028 struct btrfs_key found_key; local
2063 struct btrfs_key found_key; local
2068 &found_key);
2078 parent = found_key.offset;
[all …]
A Droot-tree.c66 struct btrfs_key found_key; in btrfs_find_root() local
89 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_find_root()
90 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
91 found_key.type != BTRFS_ROOT_ITEM_KEY) { in btrfs_find_root()
99 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
A Dtree-log.c400 struct btrfs_key found_key; in do_overwrite_item() local
1979 struct btrfs_key found_key; in replay_one_name() local
2505 struct btrfs_key found_key; in replay_dir_deletes() local
2566 &found_key); in replay_dir_deletes()
4097 struct btrfs_key found_key; in drop_inode_items() local
4123 found_key.offset = 0; in drop_inode_items()
4124 found_key.type = 0; in drop_inode_items()
6178 struct btrfs_key found_key; in log_new_ancestors() local
6193 ino = found_key.offset; in log_new_ancestors()
6520 struct btrfs_key found_key; in btrfs_recover_log_trees() local
[all …]
A Dsend.c950 dir = found_key->offset; in iterate_inode_ref()
1324 struct btrfs_key found_key; in find_extent_clone() local
1366 &found_key, &flags); in find_extent_clone()
1735 struct btrfs_key found_key; in get_first_ref() local
2665 struct btrfs_key found_key; in did_create_dir() local
2924 struct btrfs_key found_key; in can_rmdir() local
4543 struct btrfs_key found_key; in process_all_refs() local
4866 struct btrfs_key found_key; in process_all_new_xattrs() local
5571 struct btrfs_key found_key; in is_extent_unchanged() local
5651 key = found_key; in is_extent_unchanged()
[all …]
A Dxattr.c306 struct btrfs_key found_key; in btrfs_listxattr() local
327 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_listxattr()
330 if (found_key.objectid != key.objectid) in btrfs_listxattr()
332 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
334 if (found_key.type < BTRFS_XATTR_ITEM_KEY) in btrfs_listxattr()
A Dinode.c1658 struct btrfs_key found_key; in run_delalloc_nocow() local
1721 found_key.offset > end) in run_delalloc_nocow()
1790 found_key.offset - in run_delalloc_nocow()
3539 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3541 found_key.offset = 0; in btrfs_orphan_cleanup()
3621 found_key.objectid); in btrfs_orphan_cleanup()
3667 struct btrfs_key found_key; in acls_after_inode_item() local
4660 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
4780 found_key.offset); in btrfs_truncate_inode_items()
4811 found_key.offset, in btrfs_truncate_inode_items()
[all …]
A Dinode-item.c406 struct btrfs_key found_key; in btrfs_lookup_inode() local
413 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()
414 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
415 found_key.type == location->type) { in btrfs_lookup_inode()
A Dctree.c1534 struct btrfs_key *found_key) in btrfs_find_item() argument
1541 ASSERT(found_key); in btrfs_find_item()
1560 if (found_key->type != key.type || in btrfs_find_item()
4162 struct btrfs_disk_key found_key; in btrfs_prev_leaf() local
4185 ret = comp_keys(&found_key, &key); in btrfs_prev_leaf()
4225 struct btrfs_key found_key; in btrfs_search_forward() local
4318 memcpy(min_key, &found_key, sizeof(found_key)); in btrfs_search_forward()
4567 struct btrfs_key found_key; in btrfs_previous_item() local
4590 if (found_key.type == type) in btrfs_previous_item()
4593 found_key.type < type) in btrfs_previous_item()
[all …]
A Dqgroup.c332 struct btrfs_key found_key; in btrfs_read_qgroup_config() local
377 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
404 found_key.type != BTRFS_QGROUP_LIMIT_KEY) in btrfs_read_qgroup_config()
424 switch (found_key.type) { in btrfs_read_qgroup_config()
471 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_read_qgroup_config()
476 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
483 found_key.offset); in btrfs_read_qgroup_config()
487 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config()
936 struct btrfs_key found_key; in btrfs_quota_enable() local
1053 if (found_key.type == BTRFS_ROOT_REF_KEY) { in btrfs_quota_enable()
[all …]
A Dprint-tree.c213 struct btrfs_key found_key; in btrfs_print_leaf() local
243 btrfs_dir_item_key_to_cpu(l, di, &found_key); in btrfs_print_leaf()
245 found_key.objectid, in btrfs_print_leaf()
A Dscrub.c726 struct btrfs_key found_key; in scrub_print_warning() local
757 swarn.extent_item_size = found_key.offset; in scrub_print_warning()
3664 struct btrfs_key found_key; in scrub_enumerate_chunks() local
3702 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks()
3704 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
3710 if (found_key.offset >= end) in scrub_enumerate_chunks()
3713 if (found_key.offset < key.offset) in scrub_enumerate_chunks()
3719 if (found_key.offset + length <= start) in scrub_enumerate_chunks()
3859 found_key.offset, cache); in scrub_enumerate_chunks()
3895 cache, found_key.offset)) in scrub_enumerate_chunks()
[all …]
A Ddev-replace.c468 struct btrfs_key found_key; in mark_block_group_to_copy() local
545 btrfs_item_key_to_cpu(leaf, &found_key, slot); in mark_block_group_to_copy()
547 if (found_key.objectid != src_dev->devid) in mark_block_group_to_copy()
550 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in mark_block_group_to_copy()
553 if (found_key.offset < key.offset) in mark_block_group_to_copy()
A Dzoned.c1110 struct btrfs_key found_key; in calculate_alloc_pointer() local
1138 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer()
1140 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer()
1141 length = found_key.offset; in calculate_alloc_pointer()
1145 if (!(found_key.objectid >= cache->start && in calculate_alloc_pointer()
1146 found_key.objectid + length <= cache->start + cache->length)) { in calculate_alloc_pointer()
1150 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
A Dvolumes.c1726 struct btrfs_key found_key; in btrfs_free_dev_extent() local
1748 BUG_ON(found_key.offset > start || found_key.offset + in btrfs_free_dev_extent()
1750 key = found_key; in btrfs_free_dev_extent()
1795 struct btrfs_key found_key; in find_next_devid() local
3287 struct btrfs_key found_key; in btrfs_relocate_sys_chunks() local
3337 if (found_key.offset == 0) in btrfs_relocate_sys_chunks()
3826 struct btrfs_key found_key; in __btrfs_balance() local
3958 found_key.offset); in __btrfs_balance()
3974 found_key.offset); in __btrfs_balance()
3984 if (found_key.offset == 0) in __btrfs_balance()
[all …]
A Dbackref.h24 struct btrfs_path *path, struct btrfs_key *found_key,
A Ddisk-io.c316 struct btrfs_key found_key; in btrfs_verify_level_key() local
351 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
353 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key()
354 ret = btrfs_comp_cpu_keys(first_key, &found_key); in btrfs_verify_level_key()
363 found_key.objectid, found_key.type, in btrfs_verify_level_key()
364 found_key.offset); in btrfs_verify_level_key()
5012 struct btrfs_key found_key; in btrfs_init_root_free_objectid() local
5029 btrfs_item_key_to_cpu(l, &found_key, slot); in btrfs_init_root_free_objectid()
5030 root->free_objectid = max_t(u64, found_key.objectid + 1, in btrfs_init_root_free_objectid()
A Dblock-group.c1683 struct btrfs_key found_key; in find_first_block_group() local
1702 btrfs_item_key_to_cpu(leaf, &found_key, slot); in find_first_block_group()
1704 if (found_key.objectid >= key->objectid && in find_first_block_group()
1705 found_key.type == BTRFS_BLOCK_GROUP_ITEM_KEY) { in find_first_block_group()
1706 ret = read_bg_from_eb(fs_info, &found_key, path); in find_first_block_group()
A Dfree-space-cache.c1114 struct btrfs_key found_key; in update_cache_item() local
1117 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in update_cache_item()
1118 if (found_key.objectid != BTRFS_FREE_SPACE_OBJECTID || in update_cache_item()
1119 found_key.offset != offset) { in update_cache_item()
A Dextent_io.c5557 struct btrfs_key found_key; in extent_fiemap() local
5607 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in extent_fiemap()
5608 found_type = found_key.type; in extent_fiemap()
5611 if (found_key.objectid != btrfs_ino(inode) || in extent_fiemap()
5622 last = found_key.offset; in extent_fiemap()
A Dctree.h2885 u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key);

Completed in 142 milliseconds