Lines Matching refs:inr
11 u64 btrfs_lookup_inode_ref(struct btrfs_root *root, u64 inr, in btrfs_lookup_inode_ref() argument
19 key = btrfs_search_tree_key_type(root, inr, BTRFS_INODE_REF_KEY, in btrfs_lookup_inode_ref()
86 int btrfs_readlink(const struct btrfs_root *root, u64 inr, char *target) in btrfs_readlink() argument
94 key.objectid = inr; in btrfs_readlink()
107 __func__, inr); in btrfs_readlink()
115 inr); in btrfs_readlink()
119 inr); in btrfs_readlink()
123 __func__, inr, extent->ram_bytes); in btrfs_readlink()
140 static u64 get_parent_inode(struct btrfs_root *root, u64 inr, in get_parent_inode() argument
146 if (inr == BTRFS_FIRST_FREE_OBJECTID) { in get_parent_inode()
159 inr = ref.dirid; in get_parent_inode()
163 key.objectid = inr; in get_parent_inode()
171 return inr; in get_parent_inode()
174 res = btrfs_lookup_inode_ref(root, inr, NULL, NULL); in get_parent_inode()
212 u64 btrfs_lookup_path(struct btrfs_root *root, u64 inr, const char *path, in btrfs_lookup_path() argument
224 inr = root->root_dirid; in btrfs_lookup_path()
242 inr = get_parent_inode(root, inr, &inode_item); in btrfs_lookup_path()
243 if (inr == -1ULL) in btrfs_lookup_path()
253 if (btrfs_lookup_dir_item(root, inr, cur, len, &item)) in btrfs_lookup_path()
280 inr = btrfs_lookup_path(root, inr, target, &type, in btrfs_lookup_path()
285 if (inr == -1ULL) in btrfs_lookup_path()
292 inr = item.location.objectid; in btrfs_lookup_path()
305 key.objectid = inr; in btrfs_lookup_path()
316 return inr; in btrfs_lookup_path()
319 u64 btrfs_file_read(const struct btrfs_root *root, u64 inr, u64 offset, in btrfs_file_read() argument
328 key.objectid = inr; in btrfs_file_read()