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)
commit7c65b4e1715354dbc23b047d26923d8d6b70ba67
treeecb4f4ba0cd499f73876476f92c3fc6306aaa140
parent361bbfad6754d244e3ea85500865ab52f3078639
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