Lines Matching refs:found_key
1263 struct btrfs_key found_key; in run_delalloc_nocow() local
1305 btrfs_item_key_to_cpu(leaf, &found_key, in run_delalloc_nocow()
1307 if (found_key.objectid == ino && in run_delalloc_nocow()
1308 found_key.type == BTRFS_EXTENT_DATA_KEY) in run_delalloc_nocow()
1329 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1331 if (found_key.objectid > ino) in run_delalloc_nocow()
1333 if (WARN_ON_ONCE(found_key.objectid < ino) || in run_delalloc_nocow()
1334 found_key.type < BTRFS_EXTENT_DATA_KEY) { in run_delalloc_nocow()
1338 if (found_key.type > BTRFS_EXTENT_DATA_KEY || in run_delalloc_nocow()
1339 found_key.offset > end) in run_delalloc_nocow()
1342 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1343 extent_end = found_key.offset; in run_delalloc_nocow()
1357 extent_end = found_key.offset + in run_delalloc_nocow()
1383 found_key.offset - in run_delalloc_nocow()
1400 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1432 extent_end = found_key.offset + in run_delalloc_nocow()
1459 cow_start, found_key.offset - 1, in run_delalloc_nocow()
1472 u64 orig_start = found_key.offset - extent_offset; in run_delalloc_nocow()
2658 struct btrfs_key found_key; in relink_extent_backref() local
2666 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in relink_extent_backref()
2672 if (extent_len + found_key.offset == start && in relink_extent_backref()
3326 struct btrfs_key key, found_key; in btrfs_orphan_cleanup() local
3365 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3368 if (found_key.objectid != BTRFS_ORPHAN_OBJECTID) in btrfs_orphan_cleanup()
3370 if (found_key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_orphan_cleanup()
3382 if (found_key.offset == last_objectid) { in btrfs_orphan_cleanup()
3389 last_objectid = found_key.offset; in btrfs_orphan_cleanup()
3391 found_key.objectid = found_key.offset; in btrfs_orphan_cleanup()
3392 found_key.type = BTRFS_INODE_ITEM_KEY; in btrfs_orphan_cleanup()
3393 found_key.offset = 0; in btrfs_orphan_cleanup()
3394 inode = btrfs_iget(fs_info->sb, &found_key, root, NULL); in btrfs_orphan_cleanup()
3419 found_key.objectid) { in btrfs_orphan_cleanup()
3427 key.offset = found_key.objectid - 1; in btrfs_orphan_cleanup()
3461 found_key.objectid); in btrfs_orphan_cleanup()
3463 found_key.objectid); in btrfs_orphan_cleanup()
3509 struct btrfs_key found_key; in acls_after_inode_item() local
3524 btrfs_item_key_to_cpu(leaf, &found_key, slot); in acls_after_inode_item()
3527 if (found_key.objectid != objectid) in acls_after_inode_item()
3531 if (found_key.type == BTRFS_XATTR_ITEM_KEY) { in acls_after_inode_item()
3534 if (found_key.offset == xattr_access || in acls_after_inode_item()
3535 found_key.offset == xattr_default) in acls_after_inode_item()
3543 if (found_key.type > BTRFS_XATTR_ITEM_KEY) in acls_after_inode_item()
4500 struct btrfs_key found_key; in btrfs_truncate_inode_items() local
4588 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4589 found_type = found_key.type; in btrfs_truncate_inode_items()
4591 if (found_key.objectid != ino) in btrfs_truncate_inode_items()
4597 item_end = found_key.offset; in btrfs_truncate_inode_items()
4608 found_key.offset); in btrfs_truncate_inode_items()
4615 found_key.offset); in btrfs_truncate_inode_items()
4624 if (found_key.offset >= new_size) in btrfs_truncate_inode_items()
4641 found_key.offset, in btrfs_truncate_inode_items()
4656 extent_offset = found_key.offset - in btrfs_truncate_inode_items()
4677 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items()
4696 last_size = found_key.offset; in btrfs_truncate_inode_items()
5867 struct btrfs_key found_key; in btrfs_real_readdir() local
5919 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_real_readdir()
5921 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
5923 if (found_key.type != BTRFS_DIR_INDEX_KEY) in btrfs_real_readdir()
5925 if (found_key.offset < ctx->pos) in btrfs_real_readdir()
5927 if (btrfs_should_delete_dir_index(&del_list, found_key.offset)) in btrfs_real_readdir()
5952 put_unaligned(found_key.offset, &entry->offset); in btrfs_real_readdir()
6068 struct btrfs_key key, found_key; in btrfs_set_inode_index_count() local
6103 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
6105 if (found_key.objectid != btrfs_ino(inode) || in btrfs_set_inode_index_count()
6106 found_key.type != BTRFS_DIR_INDEX_KEY) { in btrfs_set_inode_index_count()
6111 inode->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6795 struct btrfs_key found_key; in btrfs_get_extent() local
6855 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6856 found_type = found_key.type; in btrfs_get_extent()
6857 if (found_key.objectid != objectid || in btrfs_get_extent()
6870 extent_start = found_key.offset; in btrfs_get_extent()
6902 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6903 if (found_key.objectid != objectid || in btrfs_get_extent()
6904 found_key.type != BTRFS_EXTENT_DATA_KEY) in btrfs_get_extent()
6906 if (start + len <= found_key.offset) in btrfs_get_extent()
6908 if (start > found_key.offset) in btrfs_get_extent()
6912 em->len = found_key.offset - start; in btrfs_get_extent()