]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: abort the transaction if the commit fails
authorJosef Bacik <josef@redhat.com>
Thu, 31 May 2012 19:52:43 +0000 (15:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 01:29:13 +0000 (21:29 -0400)
commit8b3b574d1efac3e141367ed2fa57979cca78f0b6
tree09b7c7cc0eb37d8e6d98127e2fef2b679a998059
parent31263869a5e82a09902e8322a0baca28489a618d
Btrfs: abort the transaction if the commit fails

If a transaction commit fails we don't abort it so we don't set an error on
the file system.  This patch fixes that by actually calling the abort stuff
and then adding a check for a fs error in the transaction start stuff to
make sure it is caught properly.  Thanks,

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