]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: stop avoiding balancing at the end of the transaction.
authorChris Mason <chris.mason@oracle.com>
Wed, 13 May 2009 23:12:15 +0000 (19:12 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 10 Jun 2009 15:29:47 +0000 (11:29 -0400)
commit238556cc9329bc20e2352a4a975b4b7d0db94bee
tree42859bcab04454fe639f39ddbf65f9c408e6bbbc
parent729696c235d1af21631ba5425396a2269d9c3495
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