]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check if there is enough space for balancing smarter
authorliubo <liubo2009@cn.fujitsu.com>
Wed, 3 Aug 2011 10:15:25 +0000 (10:15 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 17 Aug 2011 01:09:15 +0000 (21:09 -0400)
commit4a1e7e1f16c6ef9cafbe86554c062521ba2c306a
treea2128e008636ad4dd4d6db2131363cc71d45ad73
parent90ed1e96597949e5ce6314c77a3e0e64a670e889
Btrfs: check if there is enough space for balancing smarter

When checking if there is enough space for balancing a block group,
since we do not take raid types into consideration, we do not account
corrent amounts of space that we needed.  This makes us do some extra
work before we get ENOSPC.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c