Btrfs: remove the time check in btrfs_commit_transaction()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:30 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:50 +0000 (11:29 -0400)
commit581227d0d2b8735f899182f50b3a05089d02fa24
treeea387833d4596ff1cfe78503ba3615da948583d5
parent3f1e3fa65c44b8ecdf2d6f14956c2cfe3a462a03
Btrfs: remove the time check in btrfs_commit_transaction()

We checked the commit time to avoid committing the transaction
frequently, but it is unnecessary because:
- It made the transaction commit spend more time, and delayed the
  operation of the external writers(TRANS_START/TRANS_USERSPACE).
- Except the space that we have to commit transaction, such as
  snapshot creation, btrfs doesn't commit the transaction on its
  own initiative.

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