• Home
  • Raw
  • Download

Lines Matching refs:path

21 	struct btrfs_path *path;  in insert_normal_tree_ref()  local
33 path = btrfs_alloc_path(); in insert_normal_tree_ref()
34 if (!path) { in insert_normal_tree_ref()
39 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
42 btrfs_free_path(path); in insert_normal_tree_ref()
46 leaf = path->nodes[0]; in insert_normal_tree_ref()
47 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref()
62 btrfs_free_path(path); in insert_normal_tree_ref()
71 struct btrfs_path *path; in add_tree_ref() local
82 path = btrfs_alloc_path(); in add_tree_ref()
83 if (!path) { in add_tree_ref()
88 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
91 btrfs_free_path(path); in add_tree_ref()
95 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in add_tree_ref()
97 refs = btrfs_extent_refs(path->nodes[0], item); in add_tree_ref()
98 btrfs_set_extent_refs(path->nodes[0], item, refs + 1); in add_tree_ref()
99 btrfs_release_path(path); in add_tree_ref()
110 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
113 btrfs_free_path(path); in add_tree_ref()
122 struct btrfs_path *path; in remove_extent_item() local
131 path = btrfs_alloc_path(); in remove_extent_item()
132 if (!path) { in remove_extent_item()
137 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item()
140 btrfs_free_path(path); in remove_extent_item()
143 btrfs_del_item(&trans, root, path); in remove_extent_item()
144 btrfs_free_path(path); in remove_extent_item()
153 struct btrfs_path *path; in remove_extent_ref() local
164 path = btrfs_alloc_path(); in remove_extent_ref()
165 if (!path) { in remove_extent_ref()
170 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in remove_extent_ref()
173 btrfs_free_path(path); in remove_extent_ref()
177 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in remove_extent_ref()
179 refs = btrfs_extent_refs(path->nodes[0], item); in remove_extent_ref()
180 btrfs_set_extent_refs(path->nodes[0], item, refs - 1); in remove_extent_ref()
181 btrfs_release_path(path); in remove_extent_ref()
192 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_ref()
195 btrfs_free_path(path); in remove_extent_ref()
198 btrfs_del_item(&trans, root, path); in remove_extent_ref()
199 btrfs_free_path(path); in remove_extent_ref()