]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:28 +0000 (21:20 -0500)
commitea75c3b74915a80e49fa40f58718a81dc15cf8a6
tree473d4b4d0a7f1ce0cee4ba48fd24c59b37f5dd4d
parentbc298f31d7cccb74cb9b93487545522fff12c94c
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>
(cherry picked from commit f75b130e9bb361850787e156c79311adb84f551e)
fs/btrfs/free-space-cache.c