Lines Matching defs:path

195 	struct btrfs_path	*path;
659 * this makes the path point to (inum INODE_ITEM ioff)
665 ret = btrfs_search_slot(NULL, local_root, &key, swarn->path, 0, 0);
668 btrfs_release_path(swarn->path);
672 eb = swarn->path->nodes[0];
673 inode_item = btrfs_item_ptr(eb, swarn->path->slots[0],
677 btrfs_release_path(swarn->path);
685 ipath = init_ipath(4096, local_root, swarn->path);
704 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu, length %llu, links %u (path: %s)",
718 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu: path resolving failed with ret=%d",
732 struct btrfs_path *path;
749 path = btrfs_alloc_path();
750 if (!path)
758 ret = extent_from_logical(fs_info, swarn.logical, path, &found_key,
766 eb = path->nodes[0];
767 ei = btrfs_item_ptr(eb, path->slots[0], struct btrfs_extent_item);
768 item_size = btrfs_item_size_nr(eb, path->slots[0]);
784 btrfs_release_path(path);
786 btrfs_release_path(path);
787 swarn.path = path;
795 btrfs_free_path(path);
2753 struct btrfs_path *path,
2810 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
2815 ret = btrfs_previous_extent_item(root, path, 0);
2819 btrfs_release_path(path);
2821 path, 0, 0);
2831 l = path->nodes[0];
2832 slot = path->slots[0];
2834 ret = btrfs_next_leaf(root, path);
2951 path->slots[0]++;
2954 btrfs_release_path(path);
2971 btrfs_release_path(path);
2981 struct btrfs_path *path, *ppath;
3040 path = btrfs_alloc_path();
3041 if (!path)
3046 btrfs_free_path(path);
3055 path->search_commit_root = 1;
3056 path->skip_locking = 1;
3161 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
3166 ret = btrfs_previous_extent_item(root, path, 0);
3172 btrfs_release_path(path);
3174 path, 0, 0);
3184 l = path->nodes[0];
3185 slot = path->slots[0];
3187 ret = btrfs_next_leaf(root, path);
3335 path->slots[0]++;
3337 btrfs_release_path(path);
3359 btrfs_free_path(path);
3421 struct btrfs_path *path;
3435 path = btrfs_alloc_path();
3436 if (!path)
3439 path->reada = READA_FORWARD;
3440 path->search_commit_root = 1;
3441 path->skip_locking = 1;
3448 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
3452 if (path->slots[0] >=
3453 btrfs_header_nritems(path->nodes[0])) {
3454 ret = btrfs_next_leaf(root, path);
3466 l = path->nodes[0];
3467 slot = path->slots[0];
3690 btrfs_release_path(path);
3693 btrfs_free_path(path);