Lines Matching refs:location

3880 	struct btrfs_key location;  in btrfs_read_locked_inode()  local
3898 btrfs_get_inode_key(inode, &location); in btrfs_read_locked_inode()
3900 ret = btrfs_lookup_inode(NULL, root, path, &location, 0); in btrfs_read_locked_inode()
4010 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
4011 if (location.objectid != btrfs_ino(inode)) in btrfs_read_locked_inode()
4015 if (location.type == BTRFS_INODE_REF_KEY) { in btrfs_read_locked_inode()
4020 } else if (location.type == BTRFS_INODE_EXTREF_KEY) { in btrfs_read_locked_inode()
5573 struct btrfs_key *location, u8 *type) in btrfs_inode_by_name() argument
5603 btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); in btrfs_inode_by_name()
5604 if (location->type != BTRFS_INODE_ITEM_KEY && in btrfs_inode_by_name()
5605 location->type != BTRFS_ROOT_ITEM_KEY) { in btrfs_inode_by_name()
5610 location->objectid, location->type, location->offset); in btrfs_inode_by_name()
5627 struct btrfs_key *location, in fixup_tree_root_location() argument
5652 key.offset = location->objectid; in fixup_tree_root_location()
5674 new_root = btrfs_get_fs_root(fs_info, location->objectid, true); in fixup_tree_root_location()
5681 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5682 location->type = BTRFS_INODE_ITEM_KEY; in fixup_tree_root_location()
5683 location->offset = 0; in fixup_tree_root_location()
5869 struct btrfs_key location = { 0 }; in btrfs_lookup_dentry() local
5876 ret = btrfs_inode_by_name(BTRFS_I(dir), dentry, &location, &di_type); in btrfs_lookup_dentry()
5880 if (location.type == BTRFS_INODE_ITEM_KEY) { in btrfs_lookup_dentry()
5881 inode = btrfs_iget(location.objectid, root); in btrfs_lookup_dentry()
5898 &location, &sub_root); in btrfs_lookup_dentry()
5903 inode = new_simple_dir(dir, &location, root); in btrfs_lookup_dentry()
5905 inode = btrfs_iget(location.objectid, sub_root); in btrfs_lookup_dentry()
6114 struct btrfs_key location; in btrfs_real_readdir() local
6170 btrfs_dir_item_key_to_cpu(leaf, di, &location); in btrfs_real_readdir()
6171 put_unaligned(location.objectid, &entry->ino); in btrfs_real_readdir()