Lines Matching refs:found_key
217 struct btrfs_key found_key = { 0 }; in print_data_reloc_error() local
250 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error()
265 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error()
290 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
291 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error()
295 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error()
2066 struct btrfs_key found_key; in run_delalloc_nocow() local
2085 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
2087 if (found_key.objectid == ino && in run_delalloc_nocow()
2088 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
2104 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
2107 if (found_key.objectid > ino) in run_delalloc_nocow()
2113 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
2114 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
2120 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
2121 found_key.offset > end) in run_delalloc_nocow()
2128 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2131 cur_offset = found_key.offset; in run_delalloc_nocow()
2160 ret = can_nocow_file_extent(path, &found_key, inode, &nocow_args); in run_delalloc_nocow()
2197 found_key.offset - 1); in run_delalloc_nocow()
2199 cow_end = found_key.offset - 1; in run_delalloc_nocow()
3543 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3583 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3586 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3588 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3600 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3614 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3616 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3617 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3618 found_key.offset = 0; in btrfs_orphan_cleanup()
3649 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3656 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3702 found_key.objectid); in btrfs_orphan_cleanup()
3704 found_key.objectid); in btrfs_orphan_cleanup()
3749 struct btrfs_key found_key; in acls_after_inode_item() local
3764 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3767 if (found_key.objectid != objectid) in acls_after_inode_item()
3771 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3774 if (found_key.offset == xattr_access || in acls_after_inode_item()
3775 found_key.offset == xattr_default) in acls_after_inode_item()
3783 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
5963 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
5991 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
5993 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
5994 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
5999 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6103 struct btrfs_key found_key; in btrfs_real_readdir() local
6134 btrfs_for_each_slot(root, &key, &found_key, path, ret) { in btrfs_real_readdir()
6139 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
6141 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
6143 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
6145 if (found_key.offset > private->last_index) in btrfs_real_readdir()
6147 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
6172 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
6995 struct btrfs_key found_key; in btrfs_get_extent() local
7052 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7053 if (found_key.objectid != objectid || in btrfs_get_extent()
7054 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
7066 extent_start = found_key.offset; in btrfs_get_extent()
7097 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
7098 if (found_key.objectid != objectid || in btrfs_get_extent()
7099 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
7101 if (start + len <= found_key.offset) in btrfs_get_extent()
7103 if (start > found_key.offset) in btrfs_get_extent()
7108 em->len = found_key.offset - start; in btrfs_get_extent()