commit | 8eb2d829ffea3677c21bd038f19e5d8ca6b43e36 | [log] [tgz] |
---|---|---|
author | Li Zefan <lizf@cn.fujitsu.com> | Tue Nov 09 14:48:01 2010 +0800 |
committer | Li Zefan <lizf@cn.fujitsu.com> | Thu Jan 27 01:04:31 2011 +0800 |
tree | fc96e4d61125b703df38ee133a3d031f1c85d4a2 | |
parent | 65e5341b9a0c39767ae1fecc727d70eda0dd6d83 [diff] |
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 <josef@redhat.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>