Btrfs: fix leaked space in truncate
authorJosef Bacik <josef@redhat.com>
Fri, 9 Dec 2011 18:26:22 +0000 (13:26 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 15 Dec 2011 16:04:23 +0000 (11:04 -0500)
commit7041ee97281c30a78658904140c7bd9373a36142
tree7e0426127ca6cbe1c78e3def77b85488c69193ca
parent660d3f6cde552323578b85fc5a09a6742f1fe804
Btrfs: fix leaked space in truncate

We were occasionaly leaking space when running xfstest 269.  This is because if
we failed to start the transaction in the truncate loop we'd just goto out, but
we need to break so that the inode is removed from the orphan list and the space
is properly freed.  Thanks,

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