diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2011-03-02 08:50:21 (GMT) |
---|---|---|
committer | Li Zefan <lizf@cn.fujitsu.com> | 2011-04-25 08:45:59 (GMT) |
commit | 92c423118105e1c8c1587367a26eeb3277bda89a (patch) | |
tree | fff00ab60c0e2b82b0ab5a997ce311e13390bfa9 /fs/btrfs/free-space-cache.c | |
parent | f65647c29b14f5a32ff6f3237b0ef3b375ed5a79 (diff) | |
download | linux-fsl-qoriq-92c423118105e1c8c1587367a26eeb3277bda89a.tar.xz |
Btrfs: Remove unused btrfs_block_group_free_space()
We've already recorded the value in block_group->frees_space.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 11d2e9c..3af64c6 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1685,21 +1685,6 @@ void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group, "\n", count); } -u64 btrfs_block_group_free_space(struct btrfs_block_group_cache *block_group) -{ - struct btrfs_free_space *info; - struct rb_node *n; - u64 ret = 0; - - for (n = rb_first(&block_group->free_space_offset); n; - n = rb_next(n)) { - info = rb_entry(n, struct btrfs_free_space, offset_index); - ret += info->bytes; - } - - return ret; -} - /* * for a given cluster, put all of its extents back into the free * space cache. If the block group passed doesn't match the block group |