From: Li Zefan Date: Tue, 29 Mar 2011 05:46:06 +0000 (+0800) Subject: Btrfs: Make free space cache code generic X-Git-Tag: v3.0-rc1~38^2~12^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34d52cb6c50b5a43901709998f59fb1c5a43dc4a;p=pandora-kernel.git Btrfs: Make free space cache code generic So we can re-use the code to cache free inode numbers. The change is quite straightforward. Two new structures are introduced. - struct btrfs_free_space_ctl We move those variables that are used for caching free space from struct btrfs_block_group_cache to this new struct. - struct btrfs_free_space_op We do block group specific work (e.g. calculation of extents threshold) through functions registered in this struct. And then we can remove references to struct btrfs_block_group_cache. Signed-off-by: Li Zefan --- Reading git-diff-tree failed