From: Li Zefan Date: Tue, 9 Nov 2010 06:48:01 +0000 (+0800) Subject: btrfs: Fix threshold calculation for block groups smaller than 1GB X-Git-Tag: v2.6.38-rc4~2^2~21^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eb2d829ffea3677c21bd038f19e5d8ca6b43e36;p=pandora-kernel.git btrfs: Fix threshold calculation for block groups smaller than 1GB If a block group is smaller than 1GB, the extent entry threadhold calculation will always set the threshold to 0. So as free space gets fragmented, btrfs will switch to use bitmap to manage free space, but then will never switch back to extents due to this bug. Reviewed-by: Josef Bacik Signed-off-by: Li Zefan --- Reading git-diff-tree failed