Lines Matching refs:found_key
1479 struct btrfs_key found_key; in run_delalloc_nocow() local
1503 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1505 if (found_key.objectid == ino && in run_delalloc_nocow()
1506 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1525 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1528 if (found_key.objectid > ino) in run_delalloc_nocow()
1534 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
1535 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
1541 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1542 found_key.offset > end) in run_delalloc_nocow()
1549 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1550 extent_end = found_key.offset; in run_delalloc_nocow()
1568 extent_end = found_key.offset + in run_delalloc_nocow()
1605 found_key.offset - in run_delalloc_nocow()
1622 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1654 extent_end = found_key.offset + ram_bytes; in run_delalloc_nocow()
1689 cow_start, found_key.offset - 1, in run_delalloc_nocow()
1697 u64 orig_start = found_key.offset - extent_offset; in run_delalloc_nocow()
3030 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3069 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3072 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3074 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3086 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3093 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3095 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3096 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3097 found_key.offset = 0; in btrfs_orphan_cleanup()
3121 (unsigned long)found_key.objectid); in btrfs_orphan_cleanup()
3128 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3162 found_key.objectid); in btrfs_orphan_cleanup()
3164 found_key.objectid); in btrfs_orphan_cleanup()
3208 struct btrfs_key found_key; in acls_after_inode_item() local
3223 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3226 if (found_key.objectid != objectid) in acls_after_inode_item()
3230 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3233 if (found_key.offset == xattr_access || in acls_after_inode_item()
3234 found_key.offset == xattr_default) in acls_after_inode_item()
3242 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
4205 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
4299 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4300 found_type = found_key.type; in btrfs_truncate_inode_items()
4302 if (found_key.objectid != ino) in btrfs_truncate_inode_items()
4308 item_end = found_key.offset; in btrfs_truncate_inode_items()
4319 found_key.offset); in btrfs_truncate_inode_items()
4326 found_key.offset); in btrfs_truncate_inode_items()
4335 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
4348 clear_start = found_key.offset; in btrfs_truncate_inode_items()
4354 found_key.offset, in btrfs_truncate_inode_items()
4370 extent_offset = found_key.offset - in btrfs_truncate_inode_items()
4392 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items()
4432 last_size = found_key.offset; in btrfs_truncate_inode_items()
5648 struct btrfs_key found_key; in btrfs_real_readdir() local
5700 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_real_readdir()
5702 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
5704 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
5706 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
5708 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
5733 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
5849 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
5884 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
5886 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
5887 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
5892 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6587 struct btrfs_key found_key; in btrfs_get_extent() local
6644 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6645 if (found_key.objectid != objectid || in btrfs_get_extent()
6646 found_key.type != BTRFS_EXTENT_DATA_KEY) { in btrfs_get_extent()
6658 extent_start = found_key.offset; in btrfs_get_extent()
6689 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6690 if (found_key.objectid != objectid || in btrfs_get_extent()
6691 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
6693 if (start + len <= found_key.offset) in btrfs_get_extent()
6695 if (start > found_key.offset) in btrfs_get_extent()
6701 em->len = found_key.offset - start; in btrfs_get_extent()