Lines Matching refs:path

23 				      struct btrfs_path *path,
35 info = search_free_space_info(trans, cache, path, 0);
41 flags = btrfs_free_space_flags(path->nodes[0], info);
42 extent_count = btrfs_free_space_extent_count(path->nodes[0], info);
50 if (path->slots[0] != 0)
54 while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) {
55 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
60 bit = free_space_test_bit(cache, path, offset);
84 if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 ||
85 path->slots[0] != 0)
88 path->slots[0]++;
89 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
99 btrfs_release_path(path);
110 struct btrfs_path *path,
118 info = search_free_space_info(trans, cache, path, 0);
121 btrfs_release_path(path);
124 flags = btrfs_free_space_flags(path->nodes[0], info);
125 btrfs_release_path(path);
127 ret = __check_free_space_extents(trans, fs_info, cache, path, extents,
134 ret = convert_free_space_to_extents(trans, cache, path);
140 ret = convert_free_space_to_bitmaps(trans, cache, path);
146 return __check_free_space_extents(trans, fs_info, cache, path, extents,
153 struct btrfs_path *path,
160 return check_free_space_extents(trans, fs_info, cache, path,
167 struct btrfs_path *path,
173 ret = __remove_from_free_space_tree(trans, cache, path,
181 return check_free_space_extents(trans, fs_info, cache, path,
188 struct btrfs_path *path,
196 ret = __remove_from_free_space_tree(trans, cache, path,
203 return check_free_space_extents(trans, fs_info, cache, path,
211 struct btrfs_path *path,
219 ret = __remove_from_free_space_tree(trans, cache, path,
227 return check_free_space_extents(trans, fs_info, cache, path,
234 struct btrfs_path *path,
243 ret = __remove_from_free_space_tree(trans, cache, path,
251 return check_free_space_extents(trans, fs_info, cache, path,
258 struct btrfs_path *path,
266 ret = __remove_from_free_space_tree(trans, cache, path,
273 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
280 ret = __add_to_free_space_tree(trans, cache, path,
288 return check_free_space_extents(trans, fs_info, cache, path,
295 struct btrfs_path *path,
303 ret = __remove_from_free_space_tree(trans, cache, path,
310 ret = __add_to_free_space_tree(trans, cache, path,
318 ret = __add_to_free_space_tree(trans, cache, path,
326 return check_free_space_extents(trans, fs_info, cache, path,
333 struct btrfs_path *path,
341 ret = __remove_from_free_space_tree(trans, cache, path,
348 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
355 ret = __add_to_free_space_tree(trans, cache, path,
362 ret = __add_to_free_space_tree(trans, cache, path,
369 return check_free_space_extents(trans, fs_info, cache, path,
376 struct btrfs_path *path,
386 ret = __remove_from_free_space_tree(trans, cache, path,
393 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
400 ret = __add_to_free_space_tree(trans, cache, path,
407 ret = __add_to_free_space_tree(trans, cache, path,
414 return check_free_space_extents(trans, fs_info, cache, path,
431 struct btrfs_path *path = NULL;
479 path = btrfs_alloc_path();
480 if (!path) {
493 ret = convert_free_space_to_bitmaps(&trans, cache, path);
500 ret = test_func(&trans, root->fs_info, cache, path, alignment);
518 btrfs_free_path(path);