Lines Matching refs:path
28 struct btrfs_path *path = NULL;
40 path = btrfs_alloc_path();
41 if (!path) {
47 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0);
55 eb = path->nodes[0];
56 slot = path->slots[0];
80 btrfs_free_path(path);
90 struct btrfs_path *path = NULL;
108 path = btrfs_alloc_path();
109 if (!path) {
114 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key,
118 eb = path->nodes[0];
119 slot = path->slots[0];
126 btrfs_extend_item(trans, path, sizeof(subid_le));
127 eb = path->nodes[0];
128 slot = path->slots[0];
144 btrfs_free_path(path);
154 struct btrfs_path *path = NULL;
171 path = btrfs_alloc_path();
172 if (!path) {
177 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1);
188 eb = path->nodes[0];
189 slot = path->slots[0];
215 ret = btrfs_del_item(trans, uuid_root, path);
223 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1);
226 btrfs_free_path(path);
296 struct btrfs_path *path;
303 path = btrfs_alloc_path();
304 if (!path) {
314 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION);
327 leaf = path->nodes[0];
328 slot = path->slots[0];
358 btrfs_release_path(path);
381 ret = btrfs_next_item(root, path);
390 btrfs_free_path(path);