Lines Matching refs:found_key
220 struct btrfs_key found_key = { 0 }; in print_data_reloc_error() local
253 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error()
268 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error()
296 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
297 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error()
301 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error()
2051 struct btrfs_key found_key; in run_delalloc_nocow() local
2070 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
2072 if (found_key.objectid == ino && in run_delalloc_nocow()
2073 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
2089 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
2092 if (found_key.objectid > ino) in run_delalloc_nocow()
2098 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
2099 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
2105 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
2106 found_key.offset > end) in run_delalloc_nocow()
2113 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2116 cur_offset = found_key.offset; in run_delalloc_nocow()
2145 ret = can_nocow_file_extent(path, &found_key, inode, &nocow_args); in run_delalloc_nocow()
2182 found_key.offset - 1); in run_delalloc_nocow()
2184 cow_end = found_key.offset - 1; in run_delalloc_nocow()
3715 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3755 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3758 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3760 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3772 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3786 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3788 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3789 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3790 found_key.offset = 0; in btrfs_orphan_cleanup()
3821 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3828 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3874 found_key.objectid); in btrfs_orphan_cleanup()
3876 found_key.objectid); in btrfs_orphan_cleanup()
3921 struct btrfs_key found_key; in acls_after_inode_item() local
3936 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3939 if (found_key.objectid != objectid) in acls_after_inode_item()
3943 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3946 if (found_key.offset == xattr_access || in acls_after_inode_item()
3947 found_key.offset == xattr_default) in acls_after_inode_item()
3955 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
6160 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
6197 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
6199 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
6200 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
6205 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6309 struct btrfs_key found_key; in btrfs_real_readdir() local
6340 btrfs_for_each_slot(root, &key, &found_key, path, ret) { in btrfs_real_readdir()
6345 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
6347 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
6349 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
6351 if (found_key.offset > private->last_index) in btrfs_real_readdir()
6353 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
6378 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
7226 struct btrfs_key found_key; in btrfs_get_extent() local
7283 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7284 if (found_key.objectid != objectid || in btrfs_get_extent()
7285 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
7297 extent_start = found_key.offset; in btrfs_get_extent()
7328 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7329 if (found_key.objectid != objectid || in btrfs_get_extent()
7330 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
7332 if (start + len <= found_key.offset) in btrfs_get_extent()
7334 if (start > found_key.offset) in btrfs_get_extent()
7339 em->len = found_key.offset - start; in btrfs_get_extent()