Lines Matching defs:path
1014 struct btrfs_path *path,
1028 ret = btrfs_find_root(tree_root, key, path,
1080 struct btrfs_path *path;
1082 path = btrfs_alloc_path();
1083 if (!path)
1085 root = read_tree_root_path(tree_root, path, key);
1086 btrfs_free_path(path);
1294 struct btrfs_path *path;
1348 path = btrfs_alloc_path();
1349 if (!path) {
1357 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0);
1358 btrfs_free_path(path);
1428 struct btrfs_path *path,
1434 ASSERT(path->search_commit_root && path->skip_locking);
1453 root = read_tree_root_path(fs_info->tree_root, path, &key);
1454 btrfs_release_path(path);
2100 struct btrfs_path *path, u64 objectid,
2122 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0);
2126 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) {
2127 ret = btrfs_next_leaf(tree_root, path);
2136 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
2139 btrfs_release_path(path);
2149 root = read_tree_root_path(tree_root, path, &key);
2163 btrfs_release_path(path);
2183 struct btrfs_path *path;
2186 path = btrfs_alloc_path();
2187 if (!path)
2190 ret = load_global_roots_objectid(tree_root, path,
2194 ret = load_global_roots_objectid(tree_root, path,
2200 ret = load_global_roots_objectid(tree_root, path,
2204 btrfs_free_path(path);
4444 * This is a fast path so only do this check if we have sanity tests
4963 struct btrfs_path *path;
4970 path = btrfs_alloc_path();
4971 if (!path)
4977 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0);
4981 if (path->slots[0] > 0) {
4982 slot = path->slots[0] - 1;
4983 l = path->nodes[0];
4992 btrfs_free_path(path);