Lines Matching refs:found_key

1478 		struct btrfs_key found_key;  in run_delalloc_nocow()  local
1502 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1504 if (found_key.objectid == ino && in run_delalloc_nocow()
1505 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1524 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1527 if (found_key.objectid > ino) in run_delalloc_nocow()
1533 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
1534 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
1540 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1541 found_key.offset > end) in run_delalloc_nocow()
1548 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1549 extent_end = found_key.offset; in run_delalloc_nocow()
1567 extent_end = found_key.offset + in run_delalloc_nocow()
1604 found_key.offset - in run_delalloc_nocow()
1621 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1653 extent_end = found_key.offset + ram_bytes; in run_delalloc_nocow()
1688 cow_start, found_key.offset - 1, in run_delalloc_nocow()
1696 u64 orig_start = found_key.offset - extent_offset; in run_delalloc_nocow()
3042 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3081 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3084 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3086 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3098 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3105 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3107 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3108 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3109 found_key.offset = 0; in btrfs_orphan_cleanup()
3133 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3140 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3174 found_key.objectid); in btrfs_orphan_cleanup()
3176 found_key.objectid); in btrfs_orphan_cleanup()
3220 struct btrfs_key found_key; in acls_after_inode_item() local
3235 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3238 if (found_key.objectid != objectid) in acls_after_inode_item()
3242 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3245 if (found_key.offset == xattr_access || in acls_after_inode_item()
3246 found_key.offset == xattr_default) in acls_after_inode_item()
3254 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
4224 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
4318 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4319 found_type = found_key.type; in btrfs_truncate_inode_items()
4321 if (found_key.objectid != ino) in btrfs_truncate_inode_items()
4327 item_end = found_key.offset; in btrfs_truncate_inode_items()
4338 found_key.offset); in btrfs_truncate_inode_items()
4345 found_key.offset); in btrfs_truncate_inode_items()
4354 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
4367 clear_start = found_key.offset; in btrfs_truncate_inode_items()
4373 found_key.offset, in btrfs_truncate_inode_items()
4389 extent_offset = found_key.offset - in btrfs_truncate_inode_items()
4411 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items()
4451 last_size = found_key.offset; in btrfs_truncate_inode_items()
5667 struct btrfs_key found_key; in btrfs_real_readdir() local
5719 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_real_readdir()
5721 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
5723 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
5725 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
5727 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
5752 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
5868 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
5903 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
5905 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
5906 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
5911 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6606 struct btrfs_key found_key; in btrfs_get_extent() local
6663 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6664 if (found_key.objectid != objectid || in btrfs_get_extent()
6665 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
6677 extent_start = found_key.offset; in btrfs_get_extent()
6708 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6709 if (found_key.objectid != objectid || in btrfs_get_extent()
6710 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
6712 if (start + len <= found_key.offset) in btrfs_get_extent()
6714 if (start > found_key.offset) in btrfs_get_extent()
6720 em->len = found_key.offset - start; in btrfs_get_extent()