Btrfs: deal with free space cache errors while replaying log
authorJosef Bacik <jbacik@fusionio.com>
Thu, 25 Apr 2013 19:55:30 +0000 (15:55 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:20 +0000 (15:55 -0400)
commitb50c6e250ef91313518dbca96663578237ba8d3c
tree419d87afe4386be50be15fe5cc0cb0b367eeb1ed
parent3d7b5a2882133a04716903b1f4878a64c6610842
Btrfs: deal with free space cache errors while replaying log

So everybody who got hit by my fsync bug will still continue to hit this
BUG_ON() in the free space cache, which is pretty heavy handed.  So I took a
file system that had this bug and fixed up all the BUG_ON()'s and leaks that
popped up when I tried to mount a broken file system like this.  With this patch
we just fail to mount instead of panicing.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/tree-log.c