Lines Matching refs:found_key

232 	struct btrfs_key found_key = { 0 };  in print_data_reloc_error()  local
265 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags); in print_data_reloc_error()
280 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei, in print_data_reloc_error()
305 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
306 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error()
310 reloc_warn.extent_item_size = found_key.offset; in print_data_reloc_error()
1995 struct btrfs_key found_key; in run_delalloc_nocow() local
2016 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
2018 if (found_key.objectid == ino && in run_delalloc_nocow()
2019 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
2035 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
2038 if (found_key.objectid > ino) in run_delalloc_nocow()
2044 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
2045 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
2051 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
2052 found_key.offset > end) in run_delalloc_nocow()
2059 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2060 extent_end = found_key.offset; in run_delalloc_nocow()
2091 ret = can_nocow_file_extent(path, &found_key, inode, &nocow_args); in run_delalloc_nocow()
2126 cow_start, found_key.offset - 1); in run_delalloc_nocow()
2137 u64 orig_start = found_key.offset - nocow_args.extent_offset; in run_delalloc_nocow()
3444 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3483 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3486 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3488 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3500 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3514 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3516 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3517 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3518 found_key.offset = 0; in btrfs_orphan_cleanup()
3549 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3556 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3602 found_key.objectid); in btrfs_orphan_cleanup()
3604 found_key.objectid); in btrfs_orphan_cleanup()
3646 struct btrfs_key found_key; in acls_after_inode_item() local
3661 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3664 if (found_key.objectid != objectid) in acls_after_inode_item()
3668 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3671 if (found_key.offset == xattr_access || in acls_after_inode_item()
3672 found_key.offset == xattr_default) in acls_after_inode_item()
3680 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
5723 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
5752 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
5754 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
5755 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
5760 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
5865 struct btrfs_key found_key; in btrfs_real_readdir() local
5896 btrfs_for_each_slot(root, &key, &found_key, path, ret) { in btrfs_real_readdir()
5901 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
5903 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
5905 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
5907 if (found_key.offset > private->last_index) in btrfs_real_readdir()
5909 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
5934 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
6742 struct btrfs_key found_key; in btrfs_get_extent() local
6800 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6801 if (found_key.objectid != objectid || in btrfs_get_extent()
6802 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
6814 extent_start = found_key.offset; in btrfs_get_extent()
6845 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6846 if (found_key.objectid != objectid || in btrfs_get_extent()
6847 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
6849 if (start + len <= found_key.offset) in btrfs_get_extent()
6851 if (start > found_key.offset) in btrfs_get_extent()
6857 em->len = found_key.offset - start; in btrfs_get_extent()