Lines Matching refs:path
152 struct btrfs_path *path;
159 path = btrfs_alloc_path();
160 if (!path)
174 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
179 if (path->slots[0] == 0) {
184 path->slots[0]--;
185 leaf = path->nodes[0];
187 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
194 ref = btrfs_item_ptr(leaf, path->slots[0],
200 btrfs_free_path(path);
209 btrfs_free_path(path);
219 struct btrfs_path *path;
235 path = btrfs_alloc_path();
236 if (!path)
250 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
252 btrfs_free_path(path);
256 path->slots[0]--;
258 btrfs_free_path(path);
262 leaf = path->nodes[0];
265 rref = btrfs_item_ptr(leaf, path->slots[0],
270 iref = btrfs_item_ptr(leaf, path->slots[0],
277 btrfs_free_path(path);