Lines Matching refs:path
30 struct btrfs_path *path = NULL; in btrfs_uuid_tree_lookup() local
42 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
43 if (!path) { in btrfs_uuid_tree_lookup()
49 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
57 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
58 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
82 btrfs_free_path(path); in btrfs_uuid_tree_lookup()
92 struct btrfs_path *path = NULL; in btrfs_uuid_tree_add() local
110 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
111 if (!path) { in btrfs_uuid_tree_add()
116 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
120 eb = path->nodes[0]; in btrfs_uuid_tree_add()
121 slot = path->slots[0]; in btrfs_uuid_tree_add()
128 btrfs_extend_item(trans, path, sizeof(subid_le)); in btrfs_uuid_tree_add()
129 eb = path->nodes[0]; in btrfs_uuid_tree_add()
130 slot = path->slots[0]; in btrfs_uuid_tree_add()
144 btrfs_free_path(path); in btrfs_uuid_tree_add()
154 struct btrfs_path *path = NULL; in btrfs_uuid_tree_remove() local
171 path = btrfs_alloc_path(); in btrfs_uuid_tree_remove()
172 if (!path) { in btrfs_uuid_tree_remove()
177 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
188 eb = path->nodes[0]; in btrfs_uuid_tree_remove()
189 slot = path->slots[0]; in btrfs_uuid_tree_remove()
215 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
223 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove()
226 btrfs_free_path(path); in btrfs_uuid_tree_remove()
296 struct btrfs_path *path; in btrfs_uuid_tree_iterate() local
303 path = btrfs_alloc_path(); in btrfs_uuid_tree_iterate()
304 if (!path) { in btrfs_uuid_tree_iterate()
314 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); in btrfs_uuid_tree_iterate()
327 leaf = path->nodes[0]; in btrfs_uuid_tree_iterate()
328 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
358 btrfs_release_path(path); in btrfs_uuid_tree_iterate()
381 ret = btrfs_next_item(root, path); in btrfs_uuid_tree_iterate()
390 btrfs_free_path(path); in btrfs_uuid_tree_iterate()
399 struct btrfs_path *path = NULL; in btrfs_uuid_scan_kthread() local
408 path = btrfs_alloc_path(); in btrfs_uuid_scan_kthread()
409 if (!path) { in btrfs_uuid_scan_kthread()
423 ret = btrfs_search_forward(root, &key, path, in btrfs_uuid_scan_kthread()
437 eb = path->nodes[0]; in btrfs_uuid_scan_kthread()
438 slot = path->slots[0]; in btrfs_uuid_scan_kthread()
454 btrfs_release_path(path); in btrfs_uuid_scan_kthread()
469 btrfs_release_path(path); in btrfs_uuid_scan_kthread()
494 btrfs_release_path(path); in btrfs_uuid_scan_kthread()
518 btrfs_free_path(path); in btrfs_uuid_scan_kthread()