]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c66da9bfb15ceeb6487564d711dbe47d6064102
tree7e0426127ca6cbe1c78e3def77b85488c69193ca
parent6d88de8105e7a52441db05f7abd2eba4379294fe
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