Btrfs: unlock everything properly in the error case for nocow
authorJosef Bacik <josef@redhat.com>
Thu, 31 May 2012 19:58:55 +0000 (15:58 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 01:29:15 +0000 (21:29 -0400)
commit17ca04aff7e6171df684b7b65804df8830eb8c15
tree6fa1d7daf40ba3c2df952dd30c660c88f418c1fd
parentee670f0af35871edb492db5ba406cef36d1b7c21
Btrfs: unlock everything properly in the error case for nocow

I was getting hung on umount when a transaction was aborted because a range
of one of the free space inodes was still locked.  This is because the nocow
stuff doesn't unlock anything on error.  This fixed the problem and I
verified that is what was happening.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c