Lines Matching defs:path
77 struct btrfs_path *path = NULL;
82 path = btrfs_alloc_path();
83 if (!path) {
91 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0);
124 slot = path->slots[0];
125 eb = path->nodes[0];
228 btrfs_free_path(path);
234 * and path.
339 struct btrfs_path *path;
357 path = btrfs_alloc_path();
358 if (!path) {
362 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1);
371 btrfs_item_size_nr(path->nodes[0], path->slots[0]) < sizeof(*ptr)) {
383 ret = btrfs_del_item(trans, dev_root, path);
395 btrfs_release_path(path);
396 ret = btrfs_insert_empty_item(trans, dev_root, path,
405 eb = path->nodes[0];
406 ptr = btrfs_item_ptr(eb, path->slots[0],
437 btrfs_free_path(path);
622 * through the normal chunk allocation path.