]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix tree mod log rewinded level and rewinding of moved keys
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 31 May 2012 17:24:36 +0000 (19:24 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 31 May 2012 17:56:19 +0000 (19:56 +0200)
commit55e8552649daddaf1bc455ee36915d2a8a1216e5
tree657827f1fd4be55e2f1d52a661c8803b80c08de7
parent7c03cabd7518461365e12bc7877d4c53574d1745
Btrfs: fix tree mod log rewinded level and rewinding of moved keys

When we rewind REMOVE_WHILE_FREEING operations, there's code that allocates
a fresh buffer instead of cloning the old one. Setting that buffer's level
correctly was missing in this case.

When rewinding a MOVE_KEYS operation, btrfs_node_key_ptr_offset(slot) was
missing for memmove_extent_buffer()'s arguments.

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