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()
2024 struct btrfs_key found_key; in run_delalloc_nocow() local
2045 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
2047 if (found_key.objectid == ino && in run_delalloc_nocow()
2048 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
2064 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
2067 if (found_key.objectid > ino) in run_delalloc_nocow()
2073 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
2074 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
2080 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
2081 found_key.offset > end) in run_delalloc_nocow()
2088 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2089 extent_end = found_key.offset; in run_delalloc_nocow()
2119 ret = can_nocow_file_extent(path, &found_key, inode, &nocow_args); in run_delalloc_nocow()
2156 found_key.offset - 1); in run_delalloc_nocow()
2159 cow_end = found_key.offset - 1; in run_delalloc_nocow()
3528 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3567 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3570 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3572 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3584 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3598 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3600 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3601 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3602 found_key.offset = 0; in btrfs_orphan_cleanup()
3633 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3640 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3686 found_key.objectid); in btrfs_orphan_cleanup()
3688 found_key.objectid); in btrfs_orphan_cleanup()
3730 struct btrfs_key found_key; in acls_after_inode_item() local
3745 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3748 if (found_key.objectid != objectid) in acls_after_inode_item()
3752 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3755 if (found_key.offset == xattr_access || in acls_after_inode_item()
3756 found_key.offset == xattr_default) in acls_after_inode_item()
3764 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
5822 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
5851 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
5853 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
5854 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
5859 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
5964 struct btrfs_key found_key; in btrfs_real_readdir() local
5995 btrfs_for_each_slot(root, &key, &found_key, path, ret) { in btrfs_real_readdir()
6000 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
6002 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
6004 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
6006 if (found_key.offset > private->last_index) in btrfs_real_readdir()
6008 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
6033 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
6858 struct btrfs_key found_key; in btrfs_get_extent() local
6915 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6916 if (found_key.objectid != objectid || in btrfs_get_extent()
6917 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
6929 extent_start = found_key.offset; in btrfs_get_extent()
6960 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6961 if (found_key.objectid != objectid || in btrfs_get_extent()
6962 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
6964 if (start + len <= found_key.offset) in btrfs_get_extent()
6966 if (start > found_key.offset) in btrfs_get_extent()
6971 em->len = found_key.offset - start; in btrfs_get_extent()