Lines Matching defs:path
29 struct btrfs_path *path = NULL;
41 path = btrfs_alloc_path();
42 if (!path) {
48 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0);
56 eb = path->nodes[0];
57 slot = path->slots[0];
81 btrfs_free_path(path);
91 struct btrfs_path *path = NULL;
109 path = btrfs_alloc_path();
110 if (!path) {
115 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key,
119 eb = path->nodes[0];
120 slot = path->slots[0];
127 btrfs_extend_item(trans, path, sizeof(subid_le));
128 eb = path->nodes[0];
129 slot = path->slots[0];
145 btrfs_free_path(path);
155 struct btrfs_path *path = NULL;
172 path = btrfs_alloc_path();
173 if (!path) {
178 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1);
189 eb = path->nodes[0];
190 slot = path->slots[0];
216 ret = btrfs_del_item(trans, uuid_root, path);
224 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1);
227 btrfs_free_path(path);
297 struct btrfs_path *path;
304 path = btrfs_alloc_path();
305 if (!path) {
315 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION);
328 leaf = path->nodes[0];
329 slot = path->slots[0];
359 btrfs_release_path(path);
382 ret = btrfs_next_item(root, path);
391 btrfs_free_path(path);