Lines Matching refs:path
30 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_lookup()
40 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
41 if (!path) in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
51 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
52 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
84 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_add()
100 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
101 if (!path) in btrfs_uuid_tree_add()
104 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
108 eb = path->nodes[0]; in btrfs_uuid_tree_add()
109 slot = path->slots[0]; in btrfs_uuid_tree_add()
116 btrfs_extend_item(trans, path, sizeof(subid_le)); in btrfs_uuid_tree_add()
117 eb = path->nodes[0]; in btrfs_uuid_tree_add()
118 slot = path->slots[0]; in btrfs_uuid_tree_add()
139 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_remove()
154 path = btrfs_alloc_path(); in btrfs_uuid_tree_remove()
155 if (!path) in btrfs_uuid_tree_remove()
158 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
167 eb = path->nodes[0]; in btrfs_uuid_tree_remove()
168 slot = path->slots[0]; in btrfs_uuid_tree_remove()
191 return btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
197 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove()
212 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_check_overflow()
220 path = btrfs_alloc_path(); in btrfs_uuid_tree_check_overflow()
221 if (!path) in btrfs_uuid_tree_check_overflow()
225 ret = btrfs_search_slot(NULL, fs_info->uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_check_overflow()
231 item_size = btrfs_item_size(path->nodes[0], path->slots[0]); in btrfs_uuid_tree_check_overflow()
302 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_iterate()
309 path = btrfs_alloc_path(); in btrfs_uuid_tree_iterate()
310 if (!path) in btrfs_uuid_tree_iterate()
318 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); in btrfs_uuid_tree_iterate()
329 leaf = path->nodes[0]; in btrfs_uuid_tree_iterate()
330 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
360 btrfs_release_path(path); in btrfs_uuid_tree_iterate()
383 ret = btrfs_next_item(root, 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()