Btrfs: stop avoiding balancing at the end of the transaction.
commitb36124210248706186a02093427bdff4b3f548e8
authorChris Mason <chris.mason@oracle.com>
Wed, 13 May 2009 23:12:15 +0000 (13 19:12 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:47 +0000 (10 11:29 -0400)
tree42859bcab04454fe639f39ddbf65f9c408e6bbbc
parent5d4f98a28c7d334091c1b7744f48a1acdd2a4ae0
Btrfs: stop avoiding balancing at the end of the transaction.

When the delayed reference code was added, some checks were added
to avoid extra balancing while the delayed references were being flushed.
This made for less efficient btrees, but it reduced the chances of
loops where no forward progress was made because the balances made
more delayed ref updates.

With the new dead root removal code and the mixed back references,
the extent allocation tree is no longer using precise back refs, and
the delayed reference updates don't carry the risk of looping forever
anymore.  So, the balance avoidance is no longer required.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c