Btrfs: remove unnecessary varient ->num_joined in btrfs_transaction structure
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:29 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:48 +0000 (11:29 -0400)
commit3f1e3fa65c44b8ecdf2d6f14956c2cfe3a462a03
tree63d404df29d4fc1d0d9c215736484e6cf1f6bcb5
parent824366177aa108eb7b778dc67e4f38b9e01df93f
Btrfs: remove unnecessary varient ->num_joined in btrfs_transaction structure

We used ->num_joined track if there were some writers which join the current
transaction when the committer was sleeping. If some writers joined the current
transaction, we has to continue the while loop to do some necessary stuff, such
as flush the ordered operations. But it is unnecessary because we will do it
after the while loop.

Besides that, tracking ->num_joined would make the committer drop into the while
loop when there are lots of internal writers(TRANS_JOIN).

So we remove ->num_joined and don't track if there are some writers which join
the current transaction when the committer is sleeping.

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