Lines Matching full:path

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