• Home
  • Raw
  • Download

Lines Matching refs:path

38 	struct btrfs_path *path = NULL;  in btrfs_uuid_tree_lookup()  local
50 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
51 if (!path) { in btrfs_uuid_tree_lookup()
57 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
65 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
66 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
89 btrfs_free_path(path); in btrfs_uuid_tree_lookup()
98 struct btrfs_path *path = NULL; in btrfs_uuid_tree_add() local
116 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
117 if (!path) { in btrfs_uuid_tree_add()
122 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
126 eb = path->nodes[0]; in btrfs_uuid_tree_add()
127 slot = path->slots[0]; in btrfs_uuid_tree_add()
134 btrfs_extend_item(uuid_root, path, sizeof(subid_le)); in btrfs_uuid_tree_add()
135 eb = path->nodes[0]; in btrfs_uuid_tree_add()
136 slot = path->slots[0]; in btrfs_uuid_tree_add()
153 btrfs_free_path(path); in btrfs_uuid_tree_add()
162 struct btrfs_path *path = NULL; in btrfs_uuid_tree_rem() local
179 path = btrfs_alloc_path(); in btrfs_uuid_tree_rem()
180 if (!path) { in btrfs_uuid_tree_rem()
185 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_rem()
196 eb = path->nodes[0]; in btrfs_uuid_tree_rem()
197 slot = path->slots[0]; in btrfs_uuid_tree_rem()
223 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_rem()
231 btrfs_truncate_item(uuid_root, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_rem()
234 btrfs_free_path(path); in btrfs_uuid_tree_rem()
264 struct btrfs_path *path; in btrfs_uuid_tree_iterate() local
271 path = btrfs_alloc_path(); in btrfs_uuid_tree_iterate()
272 if (!path) { in btrfs_uuid_tree_iterate()
282 ret = btrfs_search_forward(root, &key, path, 0); in btrfs_uuid_tree_iterate()
291 leaf = path->nodes[0]; in btrfs_uuid_tree_iterate()
292 slot = path->slots[0]; in btrfs_uuid_tree_iterate()
320 btrfs_release_path(path); in btrfs_uuid_tree_iterate()
343 ret = btrfs_next_item(root, path); in btrfs_uuid_tree_iterate()
352 btrfs_free_path(path); in btrfs_uuid_tree_iterate()