Btrfs: Make the code for reading/writing free space cache generic
commit0414efae7989a2183fb2cc000ab285c4c2836a00
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 20 Apr 2011 02:20:14 +0000 (20 10:20 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Mon, 25 Apr 2011 08:46:07 +0000 (25 16:46 +0800)
tree102ade7ed6383025388daee30bce7c20d3ffc345
parent581bb050941b4f220f84d3e5ed6dace3d42dd382
Btrfs: Make the code for reading/writing free space cache generic

Extract out block group specific code from lookup_free_space_inode(),
create_free_space_inode(), load_free_space_cache() and
btrfs_write_out_cache(), so the code can be used to read/write
free ino cache.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/free-space-cache.c