Btrfs: fix cache_block_group error handling
authorJosef Bacik <jbacik@redhat.com>
Tue, 23 Sep 2008 17:14:11 +0000 (13:14 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
commitef8bbdfe7e12dc9b4e80756f6d606c4639c65851
treeaf8ba03fb6113dd9dfaf37f15c70595bfd8b2a92
parentf25956cc582f5954033cca3f9488c0a5d5193541
Btrfs: fix cache_block_group error handling

cache block group had a few bugs in the error handling code,
this makes sure paths get properly released and the correct return value
goes out.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c