Lines Matching refs:found_key
232 struct btrfs_key found_key = { 0 };
265 ret = extent_from_logical(fs_info, logical, &path, &found_key, &flags);
280 ret = tree_backref_for_extent(&ptr, eb, &found_key, ei,
305 ctx.bytenr = found_key.objectid;
306 ctx.extent_item_pos = logical - found_key.objectid;
310 reloc_warn.extent_item_size = found_key.offset;
1995 struct btrfs_key found_key;
2016 btrfs_item_key_to_cpu(leaf, &found_key,
2018 if (found_key.objectid == ino &&
2019 found_key.type == BTRFS_EXTENT_DATA_KEY)
2035 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
2038 if (found_key.objectid > ino)
2044 if (WARN_ON_ONCE(found_key.objectid < ino) ||
2045 found_key.type < BTRFS_EXTENT_DATA_KEY) {
2051 if (found_key.type > BTRFS_EXTENT_DATA_KEY ||
2052 found_key.offset > end)
2059 if (found_key.offset > cur_offset) {
2060 extent_end = found_key.offset;
2091 ret = can_nocow_file_extent(path, &found_key, inode, &nocow_args);
2120 * COW range from cow_start to found_key.offset - 1. As the key
2126 cow_start, found_key.offset - 1);
2137 u64 orig_start = found_key.offset - nocow_args.extent_offset;
3459 struct btrfs_key key, found_key;
3498 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
3501 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID)
3503 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY)
3515 if (found_key.offset == last_objectid) {
3529 last_objectid = found_key.offset;
3531 found_key.objectid = found_key.offset;
3532 found_key.type = BTRFS_INODE_ITEM_KEY;
3533 found_key.offset = 0;
3564 (unsigned long)found_key.objectid);
3571 key.offset = found_key.objectid - 1;
3617 found_key.objectid);
3619 found_key.objectid);
3661 struct btrfs_key found_key;
3676 btrfs_item_key_to_cpu(leaf, &found_key, slot);
3679 if (found_key.objectid != objectid)
3683 if (found_key.type == BTRFS_XATTR_ITEM_KEY) {
3686 if (found_key.offset == xattr_access ||
3687 found_key.offset == xattr_default)
3695 if (found_key.type > BTRFS_XATTR_ITEM_KEY)
5742 struct btrfs_key key, found_key;
5771 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
5773 if (found_key.objectid != btrfs_ino(inode) ||
5774 found_key.type != BTRFS_DIR_INDEX_KEY) {
5779 inode->index_cnt = found_key.offset + 1;
5884 struct btrfs_key found_key;
5915 btrfs_for_each_slot(root, &key, &found_key, path, ret) {
5920 if (found_key.objectid != key.objectid)
5922 if (found_key.type != BTRFS_DIR_INDEX_KEY)
5924 if (found_key.offset < ctx->pos)
5926 if (found_key.offset > private->last_index)
5928 if (btrfs_should_delete_dir_index(&del_list, found_key.offset))
5953 put_unaligned(found_key.offset, &entry->offset);
6761 struct btrfs_key found_key;
6819 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
6820 if (found_key.objectid != objectid ||
6821 found_key.type != BTRFS_EXTENT_DATA_KEY) {
6833 extent_start = found_key.offset;
6864 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
6865 if (found_key.objectid != objectid ||
6866 found_key.type != BTRFS_EXTENT_DATA_KEY)
6868 if (start + len <= found_key.offset)
6870 if (start > found_key.offset)
6876 em->len = found_key.offset - start;