Btrfs: fix subvol_sem leak in btrfs_rename()
authorJohann Lombardi <johann@whamcloud.com>
Thu, 31 Mar 2011 13:23:47 +0000 (13:23 +0000)
committerChris Mason <chris.mason@oracle.com>
Tue, 5 Apr 2011 05:19:42 +0000 (01:19 -0400)
commitb44c59a80ded004e1a82712e5f9e17b131c03221
tree36588193bf5cc91d80d9d8376d5bad78f2babd0c
parentfe3f566cd19bb6d787c92b2e202c85f929abf3ac
Btrfs: fix subvol_sem leak in btrfs_rename()

btrfs_rename() does not release the subvol_sem if the transaction failed to start.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c