• Home
  • Raw
  • Download

Lines Matching refs:key

73 	struct btrfs_key key;  in btrfs_get_dentry()  local
80 key.objectid = root_objectid; in btrfs_get_dentry()
81 btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY); in btrfs_get_dentry()
82 key.offset = (u64)-1; in btrfs_get_dentry()
86 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
97 key.objectid = objectid; in btrfs_get_dentry()
98 btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY); in btrfs_get_dentry()
99 key.offset = 0; in btrfs_get_dentry()
101 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
173 struct btrfs_key key; in btrfs_get_parent() local
182 key.objectid = root->root_key.objectid; in btrfs_get_parent()
183 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_parent()
184 key.offset = (u64)-1; in btrfs_get_parent()
187 key.objectid = btrfs_ino(dir); in btrfs_get_parent()
188 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_parent()
189 key.offset = (u64)-1; in btrfs_get_parent()
192 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_parent()
206 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
214 key.objectid = btrfs_root_ref_dirid(leaf, ref); in btrfs_get_parent()
216 key.objectid = found_key.offset; in btrfs_get_parent()
221 return btrfs_get_dentry(root->fs_info->sb, key.objectid, in btrfs_get_parent()
225 key.type = BTRFS_INODE_ITEM_KEY; in btrfs_get_parent()
226 key.offset = 0; in btrfs_get_parent()
227 return d_obtain_alias(btrfs_iget(root->fs_info->sb, &key, root, NULL)); in btrfs_get_parent()
244 struct btrfs_key key; in btrfs_get_name() local
263 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
264 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_name()
265 key.offset = (u64)-1; in btrfs_get_name()
268 key.objectid = ino; in btrfs_get_name()
269 key.offset = btrfs_ino(dir); in btrfs_get_name()
270 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_name()
273 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_name()