]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:19 +0000 (21:20 -0500)
commitc8d9fea2703a45fddf52692b2e44a8dac77de7da
tree24bc623329ad282184d3aac1dd9098ae66a7e1c5
parentf32ad3002c8e0d3aea032ad2c8902fca073cc7b5
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>
(cherry picked from commit 300e4f8a56f263797568c95b71c949f9f02e4534)
fs/btrfs/disk-io.c
fs/btrfs/free-space-cache.c