Lines Matching refs:location
3732 struct btrfs_key location; in btrfs_read_locked_inode() local
3750 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode()
3752 ret = btrfs_lookup_inode(NULL, root, path, &location, 0); in btrfs_read_locked_inode()
3858 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3859 if (location.objectid != btrfs_ino(BTRFS_I(inode))) in btrfs_read_locked_inode()
3863 if (location.type == BTRFS_INODE_REF_KEY) { in btrfs_read_locked_inode()
3868 } else if (location.type == BTRFS_INODE_EXTREF_KEY) { in btrfs_read_locked_inode()
3989 ret = btrfs_lookup_inode(trans, root, path, &inode->location, 1); in btrfs_update_inode_item()
4254 objectid = inode->location.objectid; in btrfs_unlink_subvol()
5357 struct btrfs_key *location, u8 *type) in btrfs_inode_by_name() argument
5387 btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); in btrfs_inode_by_name()
5388 if (location->type != BTRFS_INODE_ITEM_KEY && in btrfs_inode_by_name()
5389 location->type != BTRFS_ROOT_ITEM_KEY) { in btrfs_inode_by_name()
5394 location->objectid, location->type, location->offset); in btrfs_inode_by_name()
5412 struct btrfs_key *location, in fixup_tree_root_location() argument
5437 key.offset = location->objectid; in fixup_tree_root_location()
5459 new_root = btrfs_get_fs_root(fs_info, location->objectid, true); in fixup_tree_root_location()
5466 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5467 location->type = BTRFS_INODE_ITEM_KEY; in fixup_tree_root_location()
5468 location->offset = 0; in fixup_tree_root_location()
5540 BTRFS_I(inode)->location.objectid = args->ino; in btrfs_init_locked_inode()
5541 BTRFS_I(inode)->location.type = BTRFS_INODE_ITEM_KEY; in btrfs_init_locked_inode()
5542 BTRFS_I(inode)->location.offset = 0; in btrfs_init_locked_inode()
5557 return args->ino == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5630 memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); in new_simple_dir()
5671 struct btrfs_key location; in btrfs_lookup_dentry() local
5678 ret = btrfs_inode_by_name(BTRFS_I(dir), dentry, &location, &di_type); in btrfs_lookup_dentry()
5682 if (location.type == BTRFS_INODE_ITEM_KEY) { in btrfs_lookup_dentry()
5683 inode = btrfs_iget(dir->i_sb, location.objectid, root); in btrfs_lookup_dentry()
5700 &location, &sub_root); in btrfs_lookup_dentry()
5705 inode = new_simple_dir(dir, &location, root); in btrfs_lookup_dentry()
5707 inode = btrfs_iget(dir->i_sb, location.objectid, sub_root); in btrfs_lookup_dentry()
5915 struct btrfs_key location; in btrfs_real_readdir() local
5971 btrfs_dir_item_key_to_cpu(leaf, di, &location); in btrfs_real_readdir()
5972 put_unaligned(location.objectid, &entry->ino); in btrfs_real_readdir()
6102 args.ino = BTRFS_I(inode)->location.objectid; in btrfs_insert_inode_locked()
6208 struct btrfs_key *location; in btrfs_create_new_inode() local
6265 location = &BTRFS_I(inode)->location; in btrfs_create_new_inode()
6266 location->objectid = objectid; in btrfs_create_new_inode()
6267 location->offset = 0; in btrfs_create_new_inode()
6268 location->type = BTRFS_INODE_ITEM_KEY; in btrfs_create_new_inode()