Lines Matching refs:path
139 struct btrfs_path *path;
146 path = btrfs_alloc_path();
147 if (!path)
161 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
166 if (path->slots[0] == 0) {
171 path->slots[0]--;
172 leaf = path->nodes[0];
174 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
181 ref = btrfs_item_ptr(leaf, path->slots[0],
187 btrfs_free_path(path);
196 btrfs_free_path(path);
206 struct btrfs_path *path;
222 path = btrfs_alloc_path();
223 if (!path)
225 path->leave_spinning = 1;
238 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
240 btrfs_free_path(path);
244 path->slots[0]--;
246 btrfs_free_path(path);
250 leaf = path->nodes[0];
253 rref = btrfs_item_ptr(leaf, path->slots[0],
258 iref = btrfs_item_ptr(leaf, path->slots[0],
265 btrfs_free_path(path);