Lines Matching refs:location
55 struct btrfs_key *location; member
3897 struct btrfs_key location; in btrfs_read_locked_inode() local
3915 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode()
3917 ret = btrfs_lookup_inode(NULL, root, path, &location, 0); in btrfs_read_locked_inode()
4012 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
4013 if (location.objectid != btrfs_ino(BTRFS_I(inode))) in btrfs_read_locked_inode()
4017 if (location.type == BTRFS_INODE_REF_KEY) { in btrfs_read_locked_inode()
4022 } else if (location.type == BTRFS_INODE_EXTREF_KEY) { in btrfs_read_locked_inode()
4144 ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, in btrfs_update_inode_item()
4404 objectid = inode->location.objectid; in btrfs_unlink_subvol()
5793 struct btrfs_key *location, u8 *type) in btrfs_inode_by_name() argument
5813 btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); in btrfs_inode_by_name()
5814 if (location->type != BTRFS_INODE_ITEM_KEY && in btrfs_inode_by_name()
5815 location->type != BTRFS_ROOT_ITEM_KEY) { in btrfs_inode_by_name()
5820 location->objectid, location->type, location->offset); in btrfs_inode_by_name()
5837 struct btrfs_key *location, in fixup_tree_root_location() argument
5857 key.offset = location->objectid; in fixup_tree_root_location()
5880 new_root = btrfs_read_fs_root_no_name(fs_info, location); in fixup_tree_root_location()
5887 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5888 location->type = BTRFS_INODE_ITEM_KEY; in fixup_tree_root_location()
5889 location->offset = 0; in fixup_tree_root_location()
5958 inode->i_ino = args->location->objectid; in btrfs_init_locked_inode()
5959 memcpy(&BTRFS_I(inode)->location, args->location, in btrfs_init_locked_inode()
5960 sizeof(*args->location)); in btrfs_init_locked_inode()
5968 return args->location->objectid == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5973 struct btrfs_key *location, in btrfs_iget_locked() argument
5978 unsigned long hashval = btrfs_inode_hash(location->objectid, root); in btrfs_iget_locked()
5980 args.location = location; in btrfs_iget_locked()
5992 struct inode *btrfs_iget_path(struct super_block *s, struct btrfs_key *location, in btrfs_iget_path() argument
5998 inode = btrfs_iget_locked(s, location, root); in btrfs_iget_path()
6027 struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, in btrfs_iget() argument
6030 return btrfs_iget_path(s, location, root, new, NULL); in btrfs_iget()
6043 memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); in new_simple_dir()
6083 struct btrfs_key location; in btrfs_lookup_dentry() local
6091 ret = btrfs_inode_by_name(dir, dentry, &location, &di_type); in btrfs_lookup_dentry()
6095 if (location.type == BTRFS_INODE_ITEM_KEY) { in btrfs_lookup_dentry()
6096 inode = btrfs_iget(dir->i_sb, &location, root, NULL); in btrfs_lookup_dentry()
6114 &location, &sub_root); in btrfs_lookup_dentry()
6119 inode = new_simple_dir(dir->i_sb, &location, sub_root); in btrfs_lookup_dentry()
6121 inode = btrfs_iget(dir->i_sb, &location, sub_root, NULL); in btrfs_lookup_dentry()
6238 struct btrfs_key location; in btrfs_real_readdir() local
6308 btrfs_dir_item_key_to_cpu(leaf, di, &location); in btrfs_real_readdir()
6309 put_unaligned(location.objectid, &entry->ino); in btrfs_real_readdir()
6501 args.location = &BTRFS_I(inode)->location; in btrfs_insert_inode_locked()
6550 struct btrfs_key *location; in btrfs_new_inode() local
6636 location = &BTRFS_I(inode)->location; in btrfs_new_inode()
6637 location->objectid = objectid; in btrfs_new_inode()
6638 location->offset = 0; in btrfs_new_inode()
6639 location->type = BTRFS_INODE_ITEM_KEY; in btrfs_new_inode()