Btrfs: reset intwrite on transaction abort
authorJosef Bacik <jbacik@fusionio.com>
Sat, 21 Sep 2013 02:26:29 +0000 (22:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:49:08 +0000 (07:49 -0800)
commit15c7298ad21e91b0ac7e3fcf753b036d178f8c7e
tree0b3e2e6129a2793ec205abba31e9487cf56caadb
parent794d0e92d22e8dd6495d22674272e17fd3cc33fa
Btrfs: reset intwrite on transaction abort

commit e0228285a8cad70e4b7b4833cc650e36ecd8de89 upstream.

If we abort a transaction in the middle of a commit we weren't undoing the
intwrite locking.  This patch fixes that problem.

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/transaction.c