Lines Matching refs:key
67 struct btrfs_key key; in btrfs_get_dentry() local
74 key.objectid = root_objectid; in btrfs_get_dentry()
75 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_get_dentry()
76 key.offset = (u64)-1; in btrfs_get_dentry()
80 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
86 key.objectid = objectid; in btrfs_get_dentry()
87 key.type = BTRFS_INODE_ITEM_KEY; in btrfs_get_dentry()
88 key.offset = 0; in btrfs_get_dentry()
90 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
163 struct btrfs_key key; in btrfs_get_parent() local
172 key.objectid = root->root_key.objectid; in btrfs_get_parent()
173 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_parent()
174 key.offset = (u64)-1; in btrfs_get_parent()
177 key.objectid = btrfs_ino(BTRFS_I(dir)); in btrfs_get_parent()
178 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_parent()
179 key.offset = (u64)-1; in btrfs_get_parent()
182 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_parent()
196 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
204 key.objectid = btrfs_root_ref_dirid(leaf, ref); in btrfs_get_parent()
206 key.objectid = found_key.offset; in btrfs_get_parent()
211 return btrfs_get_dentry(fs_info->sb, key.objectid, in btrfs_get_parent()
215 key.type = BTRFS_INODE_ITEM_KEY; in btrfs_get_parent()
216 key.offset = 0; in btrfs_get_parent()
217 return d_obtain_alias(btrfs_iget(fs_info->sb, &key, root, NULL)); in btrfs_get_parent()
235 struct btrfs_key key; in btrfs_get_name() local
251 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
252 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_name()
253 key.offset = (u64)-1; in btrfs_get_name()
256 key.objectid = ino; in btrfs_get_name()
257 key.offset = btrfs_ino(BTRFS_I(dir)); in btrfs_get_name()
258 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_name()
261 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_name()