Searched refs:found_key (Results 1 – 6 of 6) sorted by relevance
| /linux/fs/btrfs/ |
| H A D | free-space-tree.c | 206 struct btrfs_key key, found_key; in btrfs_convert_free_space_to_bitmaps() local 240 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in btrfs_convert_free_space_to_bitmaps() 242 if (found_key.type == BTRFS_FREE_SPACE_INFO_KEY) { in btrfs_convert_free_space_to_bitmaps() 243 ASSERT(found_key.objectid == block_group->start); in btrfs_convert_free_space_to_bitmaps() 244 ASSERT(found_key.offset == block_group->length); in btrfs_convert_free_space_to_bitmaps() 247 } else if (found_key.type == BTRFS_FREE_SPACE_EXTENT_KEY) { in btrfs_convert_free_space_to_bitmaps() 250 ASSERT(found_key.objectid >= start); in btrfs_convert_free_space_to_bitmaps() 251 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_bitmaps() 252 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_bitmaps() 254 first = div_u64(found_key.objectid - start, in btrfs_convert_free_space_to_bitmaps() [all …]
|
| H A D | export.c | 162 struct btrfs_key found_key; in btrfs_get_parent() local 200 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 201 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 206 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 211 key.objectid = found_key.offset; in btrfs_get_parent() 215 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 217 found_key.offset, 0); in btrfs_get_parent()
|
| H A D | send.c | 977 struct btrfs_key *found_key, bool resolve, in iterate_inode_ref() argument 1007 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1021 if (found_key->type == BTRFS_INODE_REF_KEY) { in iterate_inode_ref() 1025 dir = found_key->offset; in iterate_inode_ref() 1058 BTRFS_KEY_FMT_VALUE(found_key)); in iterate_inode_ref() 1224 struct btrfs_key key, found_key; in get_inode_path() local 1243 btrfs_item_key_to_cpu(p->nodes[0], &found_key, p->slots[0]); in get_inode_path() 1244 if (found_key.objectid != ino || in get_inode_path() 1245 (found_key.type != BTRFS_INODE_REF_KEY && in get_inode_path() 1246 found_key.type != BTRFS_INODE_EXTREF_KEY)) in get_inode_path() [all …]
|
| H A D | scrub.c | 590 struct btrfs_key found_key; in scrub_print_common_warning() local 613 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, in scrub_print_common_warning() 618 swarn.extent_item_size = found_key.offset; in scrub_print_common_warning() 630 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in scrub_print_common_warning() 653 ctx.bytenr = found_key.objectid; in scrub_print_common_warning() 654 ctx.extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_common_warning() 2682 struct btrfs_key found_key; in scrub_enumerate_chunks() local 2722 btrfs_item_key_to_cpu(l, &found_key, slot); in scrub_enumerate_chunks() 2724 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks() 2727 if (found_key.type != BTRFS_DEV_EXTENT_KEY) in scrub_enumerate_chunks() [all …]
|
| H A D | tree-checker.c | 2262 struct btrfs_key found_key; in btrfs_verify_level_key() local 2296 btrfs_node_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 2298 btrfs_item_key_to_cpu(eb, &found_key, 0); in btrfs_verify_level_key() 2300 ret = btrfs_comp_cpu_keys(&check->first_key, &found_key); in btrfs_verify_level_key() 2307 found_key.objectid, found_key.type, in btrfs_verify_level_key() 2308 found_key.offset); in btrfs_verify_level_key()
|
| H A D | zoned.c | 1233 struct btrfs_key found_key; in calculate_alloc_pointer() local 1277 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in calculate_alloc_pointer() 1279 if (found_key.type == BTRFS_EXTENT_ITEM_KEY) in calculate_alloc_pointer() 1280 length = found_key.offset; in calculate_alloc_pointer() 1284 if (unlikely(!(found_key.objectid >= cache->start && in calculate_alloc_pointer() 1285 found_key.objectid + length <= cache->start + cache->length))) { in calculate_alloc_pointer() 1288 *offset_ret = found_key.objectid + length - cache->start; in calculate_alloc_pointer()
|