Lines Matching refs:path
82 struct btrfs_path *path = NULL;
90 path = btrfs_alloc_path();
91 if (!path) {
99 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0);
131 slot = path->slots[0];
132 eb = path->nodes[0];
233 btrfs_free_path(path);
239 * and path.
350 struct btrfs_path *path;
368 path = btrfs_alloc_path();
369 if (!path) {
373 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1);
382 btrfs_item_size(path->nodes[0], path->slots[0]) < sizeof(*ptr)) {
394 ret = btrfs_del_item(trans, dev_root, path);
406 btrfs_release_path(path);
407 ret = btrfs_insert_empty_item(trans, dev_root, path,
416 eb = path->nodes[0];
417 ptr = btrfs_item_ptr(eb, path->slots[0],
448 btrfs_free_path(path);
456 struct btrfs_path *path;
500 path = btrfs_alloc_path();
501 if (!path) {
506 path->reada = READA_FORWARD;
507 path->search_commit_root = 1;
508 path->skip_locking = 1;
514 btrfs_for_each_slot(root, &key, &found_key, path, iter_ret) {
515 struct extent_buffer *leaf = path->nodes[0];
526 dev_extent = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_extent);
540 btrfs_free_path(path);
798 * through the normal chunk allocation path.