Btrfs: put the block group cache after we commit the super
authorJosef Bacik <josef@redhat.com>
Mon, 29 Aug 2011 18:06:00 +0000 (14:06 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:41 +0000 (15:12 -0400)
commit300e4f8a56f263797568c95b71c949f9f02e4534
treeecb4f4ba0cd499f73876476f92c3fc6306aaa140
parent4a33854257764c2ec6337ee0c8ecafb64f8e29e1
Btrfs: put the block group cache after we commit the super

In moving some enospc stuff around I noticed that when we unmount we are often
evicting the free space cache inodes before we do our last commit.  This isn't
bad, but it makes us constantly have to re-read the inodes back.  So instead
don't evict the cache until after we do our last commit, this will make things a
little less crappy and makes a future enospc change work properly.  Thanks,

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