Lines Matching defs:path
294 struct btrfs_path *path;
305 path = btrfs_alloc_path();
306 if (!path)
309 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
313 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) {
314 ret = btrfs_next_leaf(root, path);
324 leaf = path->nodes[0];
325 dext = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_extent);
330 btrfs_free_path(path);
1219 struct btrfs_path *path;
1240 path = btrfs_alloc_path();
1241 if (!path)
1249 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
1256 ret = btrfs_previous_extent_item(root, path, cache->start);
1265 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]);
1281 btrfs_free_path(path);