free-space-cache.h (00361589d2eebd90fca022148c763e40d3e90871) free-space-cache.h (dc11dd5d707a4157882f281c96055d6894d10c8c)
1/*
2 * Copyright (C) 2009 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 98 unchanged lines hidden (view full) ---

107 struct btrfs_free_cluster *cluster, u64 bytes,
108 u64 min_start);
109int btrfs_return_cluster_to_free_space(
110 struct btrfs_block_group_cache *block_group,
111 struct btrfs_free_cluster *cluster);
112int btrfs_trim_block_group(struct btrfs_block_group_cache *block_group,
113 u64 *trimmed, u64 start, u64 end, u64 minlen);
114
1/*
2 * Copyright (C) 2009 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 98 unchanged lines hidden (view full) ---

107 struct btrfs_free_cluster *cluster, u64 bytes,
108 u64 min_start);
109int btrfs_return_cluster_to_free_space(
110 struct btrfs_block_group_cache *block_group,
111 struct btrfs_free_cluster *cluster);
112int btrfs_trim_block_group(struct btrfs_block_group_cache *block_group,
113 u64 *trimmed, u64 start, u64 end, u64 minlen);
114
115void btrfs_test_free_space_cache(void);
115/* Support functions for runnint our sanity tests */
116#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
117int test_add_free_space_entry(struct btrfs_block_group_cache *cache,
118 u64 offset, u64 bytes, bool bitmap);
119int test_check_exists(struct btrfs_block_group_cache *cache,
120 u64 offset, u64 bytes);
121#endif
116
117#endif
122
123#endif