Lines Matching refs:path
79 struct btrfs_path *path = NULL;
87 path = btrfs_alloc_path();
88 if (!path) {
96 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0);
128 slot = path->slots[0];
129 eb = path->nodes[0];
230 btrfs_free_path(path);
236 * and path.
349 struct btrfs_path *path;
367 path = btrfs_alloc_path();
368 if (!path) {
372 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1);
381 btrfs_item_size(path->nodes[0], path->slots[0]) < sizeof(*ptr)) {
393 ret = btrfs_del_item(trans, dev_root, path);
405 btrfs_release_path(path);
406 ret = btrfs_insert_empty_item(trans, dev_root, path,
415 eb = path->nodes[0];
416 ptr = btrfs_item_ptr(eb, path->slots[0],
447 btrfs_free_path(path);
455 struct btrfs_path *path;
499 path = btrfs_alloc_path();
500 if (!path) {
505 path->reada = READA_FORWARD;
506 path->search_commit_root = 1;
507 path->skip_locking = 1;
513 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) {
514 struct extent_buffer *leaf = path->nodes[0];
525 dev_extent = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_extent);
539 btrfs_free_path(path);
795 * through the normal chunk allocation path.