]> 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)
commit2214ca81f5cfbb313b489f9f554d68bdf36b9d84
tree6b1c532506eeec5998422e7c3d253e129582eb17
parent782687698056a0a2ed5434848eac28ddd454faff
Btrfs: fix tree mod log regression on root split operations

Commit 257936f3 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