From: Li Zefan Date: Tue, 9 Nov 2010 06:56:50 +0000 (+0800) Subject: btrfs: Add a helper try_merge_free_space() X-Git-Tag: v2.6.38-rc4~2^2~21^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=120d66eec0dcb966fbd03f743598b2ff2513436b;p=pandora-kernel.git btrfs: Add a helper try_merge_free_space() When adding a new extent, we'll firstly see if we can merge this extent to the left or/and right extent. Extract this as a helper try_merge_free_space(). As a side effect, we fix a small bug that if the new extent has non-bitmap left entry but is unmergeble, we'll directly link the extent without trying to drop it into bitmap. This also prepares for the next patch. Reviewed-by: Josef Bacik Signed-off-by: Li Zefan --- Reading git-diff-tree failed