Btrfs: remove the code for the impossible case in cleanup_transaction()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:26 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:45 +0000 (11:29 -0400)
commit25d8c284c7d9b9d536a1334f6b670645da971a19
treef2d7c360b2ec1b3cfb02793890cd92a87cecba92
parentac6738792fe4478df2da9c1f41e3540e9ef79604
Btrfs: remove the code for the impossible case in cleanup_transaction()

If the transaction is removed from the transaction list, it means the
transaction has been committed successfully. So it is impossible to
call cleanup_transaction(), otherwise there is something wrong with
the code logic. Thus, we use BUG_ON() instead of the original handle.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/transaction.c