Lines Matching refs:location
65 struct btrfs_key *location; member
3578 struct btrfs_key location; in btrfs_read_locked_inode() local
3594 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode()
3596 ret = btrfs_lookup_inode(NULL, root, path, &location, 0); in btrfs_read_locked_inode()
3658 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3659 if (location.objectid != btrfs_ino(inode)) in btrfs_read_locked_inode()
3663 if (location.type == BTRFS_INODE_REF_KEY) { in btrfs_read_locked_inode()
3668 } else if (location.type == BTRFS_INODE_EXTREF_KEY) { in btrfs_read_locked_inode()
3794 ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, in btrfs_update_inode_item()
4146 BTRFS_I(inode)->location.objectid, in btrfs_rmdir()
5240 struct btrfs_key *location) in btrfs_inode_by_name() argument
5261 btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); in btrfs_inode_by_name()
5266 location->objectid = 0; in btrfs_inode_by_name()
5278 struct btrfs_key *location, in fixup_tree_root_location() argument
5298 key.offset = location->objectid; in fixup_tree_root_location()
5322 new_root = btrfs_read_fs_root_no_name(root->fs_info, location); in fixup_tree_root_location()
5329 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5330 location->type = BTRFS_INODE_ITEM_KEY; in fixup_tree_root_location()
5331 location->offset = 0; in fixup_tree_root_location()
5463 inode->i_ino = args->location->objectid; in btrfs_init_locked_inode()
5464 memcpy(&BTRFS_I(inode)->location, args->location, in btrfs_init_locked_inode()
5465 sizeof(*args->location)); in btrfs_init_locked_inode()
5473 return args->location->objectid == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5478 struct btrfs_key *location, in btrfs_iget_locked() argument
5483 unsigned long hashval = btrfs_inode_hash(location->objectid, root); in btrfs_iget_locked()
5485 args.location = location; in btrfs_iget_locked()
5497 struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, in btrfs_iget() argument
5502 inode = btrfs_iget_locked(s, location, root); in btrfs_iget()
5533 memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); in new_simple_dir()
5553 struct btrfs_key location; in btrfs_lookup_dentry() local
5560 ret = btrfs_inode_by_name(dir, dentry, &location); in btrfs_lookup_dentry()
5564 if (location.objectid == 0) in btrfs_lookup_dentry()
5567 if (location.type == BTRFS_INODE_ITEM_KEY) { in btrfs_lookup_dentry()
5568 inode = btrfs_iget(dir->i_sb, &location, root, NULL); in btrfs_lookup_dentry()
5572 BUG_ON(location.type != BTRFS_ROOT_ITEM_KEY); in btrfs_lookup_dentry()
5576 &location, &sub_root); in btrfs_lookup_dentry()
5581 inode = new_simple_dir(dir->i_sb, &location, sub_root); in btrfs_lookup_dentry()
5583 inode = btrfs_iget(dir->i_sb, &location, sub_root, NULL); in btrfs_lookup_dentry()
5733 struct btrfs_key location; in btrfs_real_readdir() local
5752 btrfs_dir_item_key_to_cpu(leaf, di, &location); in btrfs_real_readdir()
5764 if (location.type == BTRFS_ROOT_ITEM_KEY && in btrfs_real_readdir()
5765 location.objectid == root->root_key.objectid) { in btrfs_real_readdir()
5770 location.objectid, d_type); in btrfs_real_readdir()
6007 args.location = &BTRFS_I(inode)->location; in btrfs_insert_inode_locked()
6024 struct btrfs_key *location; in btrfs_new_inode() local
6107 location = &BTRFS_I(inode)->location; in btrfs_new_inode()
6108 location->objectid = objectid; in btrfs_new_inode()
6109 location->offset = 0; in btrfs_new_inode()
6110 location->type = BTRFS_INODE_ITEM_KEY; in btrfs_new_inode()
9242 root_objectid = BTRFS_I(new_inode)->location.objectid; in btrfs_rename()