]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix tree mod log regression on root split operations
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Sat, 13 Apr 2013 13:19:53 +0000 (13:19 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:47 +0000 (15:54 -0400)
commit5b86da30ad07ccb56961dca69d10ee3c8cf04dd1
tree6b1c532506eeec5998422e7c3d253e129582eb17
parente43cf07334e35f4eb7006b76bb5419fb80e02da4
Btrfs: fix tree mod log regression on root split operations

Commit c2e2084e changed tree mod log locking around ROOT_REPLACE operations.
When a tree root is split, however, we were logging removal of all elements
from the root node before logging removal of half of the elements for the
split operation. This leads to a BUG_ON when rewinding.

This commit removes the erroneous logging of removal of all elements.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c