• Home
  • Raw
  • Download

Lines Matching refs:path

26 	struct btrfs_path *path = NULL;  in btrfs_uuid_tree_lookup()  local
38 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
39 if (!path) { in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
53 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
54 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
78 btrfs_free_path(path); in btrfs_uuid_tree_lookup()
88 struct btrfs_path *path = NULL; in btrfs_uuid_tree_add() local
106 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
107 if (!path) { in btrfs_uuid_tree_add()
112 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
116 eb = path->nodes[0]; in btrfs_uuid_tree_add()
117 slot = path->slots[0]; in btrfs_uuid_tree_add()
124 btrfs_extend_item(path, sizeof(subid_le)); in btrfs_uuid_tree_add()
125 eb = path->nodes[0]; in btrfs_uuid_tree_add()
126 slot = path->slots[0]; in btrfs_uuid_tree_add()
143 btrfs_free_path(path); in btrfs_uuid_tree_add()
153 struct btrfs_path *path = NULL; in btrfs_uuid_tree_remove() local
170 path = btrfs_alloc_path(); in btrfs_uuid_tree_remove()
171 if (!path) { in btrfs_uuid_tree_remove()
176 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
187 eb = path->nodes[0]; in btrfs_uuid_tree_remove()
188 slot = path->slots[0]; in btrfs_uuid_tree_remove()
214 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
222 btrfs_truncate_item(path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove()
225 btrfs_free_path(path); in btrfs_uuid_tree_remove()
255 struct btrfs_path *path; in btrfs_uuid_tree_iterate() local
262 path = btrfs_alloc_path(); in btrfs_uuid_tree_iterate()
263 if (!path) { in btrfs_uuid_tree_iterate()
273 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); in btrfs_uuid_tree_iterate()
282 leaf = path->nodes[0]; in btrfs_uuid_tree_iterate()
283 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
312 btrfs_release_path(path); in btrfs_uuid_tree_iterate()
335 ret = btrfs_next_item(root, path); in btrfs_uuid_tree_iterate()
344 btrfs_free_path(path); in btrfs_uuid_tree_iterate()