Btrfs: Remove unnecessary finish_wait() in wait_current_trans()
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 25 Mar 2010 12:35:14 +0000 (12:35 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:08 +0000 (21:19 -0400)
commit471fa17dff556ad38caf26de097c0630530d8cbe
tree1a89bf8fa9eb34df3512c1216d5a92a29327a98d
parent90d2c51dbb4db05c040bc7db264bb7ab35e35455
Btrfs: Remove unnecessary finish_wait() in wait_current_trans()

We only need to call finish_wait() after wait loop.

By the way, this patch makes code of waiting loop similar to
example in wait.h(no functional change)

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c