Lines Matching refs:location
65 struct btrfs_key *location; member
3610 struct btrfs_key location; in btrfs_read_locked_inode() local
3626 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode()
3628 ret = btrfs_lookup_inode(NULL, root, path, &location, 0); in btrfs_read_locked_inode()
3719 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3720 if (location.objectid != btrfs_ino(inode)) in btrfs_read_locked_inode()
3724 if (location.type == BTRFS_INODE_REF_KEY) { in btrfs_read_locked_inode()
3729 } else if (location.type == BTRFS_INODE_EXTREF_KEY) { in btrfs_read_locked_inode()
3855 ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, in btrfs_update_inode_item()
4185 BTRFS_I(inode)->location.objectid, in btrfs_rmdir()
5311 struct btrfs_key *location) in btrfs_inode_by_name() argument
5332 btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); in btrfs_inode_by_name()
5337 location->objectid = 0; in btrfs_inode_by_name()
5349 struct btrfs_key *location, in fixup_tree_root_location() argument
5369 key.offset = location->objectid; in fixup_tree_root_location()
5393 new_root = btrfs_read_fs_root_no_name(root->fs_info, location); in fixup_tree_root_location()
5400 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location()
5401 location->type = BTRFS_INODE_ITEM_KEY; in fixup_tree_root_location()
5402 location->offset = 0; in fixup_tree_root_location()
5534 inode->i_ino = args->location->objectid; in btrfs_init_locked_inode()
5535 memcpy(&BTRFS_I(inode)->location, args->location, in btrfs_init_locked_inode()
5536 sizeof(*args->location)); in btrfs_init_locked_inode()
5544 return args->location->objectid == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5549 struct btrfs_key *location, in btrfs_iget_locked() argument
5554 unsigned long hashval = btrfs_inode_hash(location->objectid, root); in btrfs_iget_locked()
5556 args.location = location; in btrfs_iget_locked()
5568 struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, in btrfs_iget() argument
5573 inode = btrfs_iget_locked(s, location, root); in btrfs_iget()
5604 memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); in new_simple_dir()
5624 struct btrfs_key location; in btrfs_lookup_dentry() local
5631 ret = btrfs_inode_by_name(dir, dentry, &location); in btrfs_lookup_dentry()
5635 if (location.objectid == 0) in btrfs_lookup_dentry()
5638 if (location.type == BTRFS_INODE_ITEM_KEY) { in btrfs_lookup_dentry()
5639 inode = btrfs_iget(dir->i_sb, &location, root, NULL); in btrfs_lookup_dentry()
5643 BUG_ON(location.type != BTRFS_ROOT_ITEM_KEY); in btrfs_lookup_dentry()
5647 &location, &sub_root); in btrfs_lookup_dentry()
5652 inode = new_simple_dir(dir->i_sb, &location, sub_root); in btrfs_lookup_dentry()
5654 inode = btrfs_iget(dir->i_sb, &location, sub_root, NULL); in btrfs_lookup_dentry()
5804 struct btrfs_key location; in btrfs_real_readdir() local
5823 btrfs_dir_item_key_to_cpu(leaf, di, &location); in btrfs_real_readdir()
5835 if (location.type == BTRFS_ROOT_ITEM_KEY && in btrfs_real_readdir()
5836 location.objectid == root->root_key.objectid) { in btrfs_real_readdir()
5841 location.objectid, d_type); in btrfs_real_readdir()
6078 args.location = &BTRFS_I(inode)->location; in btrfs_insert_inode_locked()
6095 struct btrfs_key *location; in btrfs_new_inode() local
6178 location = &BTRFS_I(inode)->location; in btrfs_new_inode()
6179 location->objectid = objectid; in btrfs_new_inode()
6180 location->offset = 0; in btrfs_new_inode()
6181 location->type = BTRFS_INODE_ITEM_KEY; in btrfs_new_inode()
9383 root_objectid = BTRFS_I(new_inode)->location.objectid; in btrfs_rename()