Lines Matching refs:path
22 struct btrfs_path *path,
34 info = search_free_space_info(trans, cache, path, 0);
40 flags = btrfs_free_space_flags(path->nodes[0], info);
41 extent_count = btrfs_free_space_extent_count(path->nodes[0], info);
49 if (path->slots[0] != 0)
53 while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) {
54 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
59 bit = free_space_test_bit(cache, path, offset);
83 if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 ||
84 path->slots[0] != 0)
87 path->slots[0]++;
88 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
98 btrfs_release_path(path);
109 struct btrfs_path *path,
117 info = search_free_space_info(trans, cache, path, 0);
120 btrfs_release_path(path);
123 flags = btrfs_free_space_flags(path->nodes[0], info);
124 btrfs_release_path(path);
126 ret = __check_free_space_extents(trans, fs_info, cache, path, extents,
133 ret = convert_free_space_to_extents(trans, cache, path);
139 ret = convert_free_space_to_bitmaps(trans, cache, path);
145 return __check_free_space_extents(trans, fs_info, cache, path, extents,
152 struct btrfs_path *path,
159 return check_free_space_extents(trans, fs_info, cache, path,
166 struct btrfs_path *path,
172 ret = __remove_from_free_space_tree(trans, cache, path,
180 return check_free_space_extents(trans, fs_info, cache, path,
187 struct btrfs_path *path,
195 ret = __remove_from_free_space_tree(trans, cache, path,
202 return check_free_space_extents(trans, fs_info, cache, path,
210 struct btrfs_path *path,
218 ret = __remove_from_free_space_tree(trans, cache, path,
226 return check_free_space_extents(trans, fs_info, cache, path,
233 struct btrfs_path *path,
242 ret = __remove_from_free_space_tree(trans, cache, path,
250 return check_free_space_extents(trans, fs_info, cache, path,
257 struct btrfs_path *path,
265 ret = __remove_from_free_space_tree(trans, cache, path,
272 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
279 ret = __add_to_free_space_tree(trans, cache, path,
287 return check_free_space_extents(trans, fs_info, cache, path,
294 struct btrfs_path *path,
302 ret = __remove_from_free_space_tree(trans, cache, path,
309 ret = __add_to_free_space_tree(trans, cache, path,
317 ret = __add_to_free_space_tree(trans, cache, path,
325 return check_free_space_extents(trans, fs_info, cache, path,
332 struct btrfs_path *path,
340 ret = __remove_from_free_space_tree(trans, cache, path,
347 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
354 ret = __add_to_free_space_tree(trans, cache, path,
361 ret = __add_to_free_space_tree(trans, cache, path,
368 return check_free_space_extents(trans, fs_info, cache, path,
375 struct btrfs_path *path,
385 ret = __remove_from_free_space_tree(trans, cache, path,
392 ret = __add_to_free_space_tree(trans, cache, path, cache->start,
399 ret = __add_to_free_space_tree(trans, cache, path,
406 ret = __add_to_free_space_tree(trans, cache, path,
413 return check_free_space_extents(trans, fs_info, cache, path,
430 struct btrfs_path *path = NULL;
475 path = btrfs_alloc_path();
476 if (!path) {
489 ret = convert_free_space_to_bitmaps(&trans, cache, path);
496 ret = test_func(&trans, root->fs_info, cache, path, alignment);
514 btrfs_free_path(path);