Lines Matching refs:path
26 struct btrfs_path *path = NULL;
38 path = btrfs_alloc_path();
39 if (!path) {
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0);
53 eb = path->nodes[0];
54 slot = path->slots[0];
78 btrfs_free_path(path);
88 struct btrfs_path *path = NULL;
106 path = btrfs_alloc_path();
107 if (!path) {
112 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key,
116 eb = path->nodes[0];
117 slot = path->slots[0];
124 btrfs_extend_item(path, sizeof(subid_le));
125 eb = path->nodes[0];
126 slot = path->slots[0];
143 btrfs_free_path(path);
153 struct btrfs_path *path = NULL;
170 path = btrfs_alloc_path();
171 if (!path) {
176 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1);
187 eb = path->nodes[0];
188 slot = path->slots[0];
214 ret = btrfs_del_item(trans, uuid_root, path);
222 btrfs_truncate_item(path, item_size - sizeof(subid), 1);
225 btrfs_free_path(path);
295 struct btrfs_path *path;
302 path = btrfs_alloc_path();
303 if (!path) {
313 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION);
326 leaf = path->nodes[0];
327 slot = path->slots[0];
357 btrfs_release_path(path);
380 ret = btrfs_next_item(root, path);
389 btrfs_free_path(path);