Btrfs: cleanup fs roots if we fail to mount
authorJosef Bacik <jbacik@fusionio.com>
Wed, 24 Apr 2013 20:35:41 +0000 (16:35 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:08 +0000 (15:55 -0400)
commit171f6537abb1929ab9072ed084872273300ca175
treeec2b1a84ecd88c5d49485b4d28c56cbab0036ef8
parenteb384b55ae9c2055ea00c5cc87971e182d47aefa
Btrfs: cleanup fs roots if we fail to mount

We can run the tree logging recovery or the orphan cleanup on mount, so we'll
end up looking up a random fs tree in the meantime.  So we need to clean this up
so we don't leave extent buffers hanging around on the cache.  With this patch
we no longer leak extent buffers on failure to mount.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/disk-io.c