]> Pileus Git - ~andy/linux/commit
Btrfs: cleanup unnecessary assignment when cleaning up all the residual transaction
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:25 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:44 +0000 (11:29 -0400)
commitac6738792fe4478df2da9c1f41e3540e9ef79604
treea10be3006879d4d50438dc9f332e6bd5548209be
parent6a03843df4d29593912e558c72a2ce39274d2366
Btrfs: cleanup unnecessary assignment when cleaning up all the residual transaction

When we umount a fs with serious errors, we will invoke btrfs_cleanup_transactions()
to clean up the residual transaction. At this time, It is impossible to start a new
transaction, so we needn't assign trans_no_join to 1, and also needn't clear running
transaction every time we destroy a residual transaction.

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