Btrfs: fix error cases for ioctl transactions
authorSage Weil <sage@newdream.net>
Tue, 29 Sep 2009 22:38:44 +0000 (18:38 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 29 Sep 2009 22:38:44 +0000 (18:38 -0400)
commit1ab86aedbc7845a946b4ba4edf37762629970708
tree1a3ad19d12a807d76d5700abc6415e1535c88312
parent3baf0bed0a5adab95c7599d2f27124c74692ef28
Btrfs: fix error cases for ioctl transactions

Fix leak of vfsmount write reference and open_ioctl_trans reference on
ENOMEM.  Clean up the error paths while we're at it.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c