Btrfs: don't skip writing out a empty block groups cache
authorJosef Bacik <josef@redhat.com>
Wed, 5 Oct 2011 14:00:18 +0000 (10:00 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:51 +0000 (15:12 -0400)
commitf75b130e9bb361850787e156c79311adb84f551e
tree6bc2fdf8c19f36124583774f07550e26b85de7e5
parent73bc187680f94bed498f8a669103cad290e41180
Btrfs: don't skip writing out a empty block groups cache

I noticed a slight bug where we will not bother writing out the block group
cache's space cache if it's space tree is empty.  Since it could have a cluster
or pinned extents that need to be written out this is just not a valid test.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/free-space-cache.c