btrfs-progs: extent-tree: Introduce functions to free in-memory block group cache
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 7 Jul 2015 08:15:26 +0000 (16:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 10 Jul 2015 12:37:15 +0000 (14:37 +0200)
commit00827cad8e36a6f55d344c92a15fb4cd3c596378
tree62f0150ccf0ee511da4ed9bb75f18f24a472168d
parent1da859012b47eac4f4503cd2d80e1567d616b4bd
btrfs-progs: extent-tree: Introduce functions to free in-memory block group cache

Introduce two functions, free_space_info and free_block_group_cache.

The former will free the space of a empty block group.
The latter will free the in memory block group cache along with its
space in space_info and device space.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
extent-tree.c