]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/ctree.c
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)
commitc31931088fd6cf953bd0868a2647b6c3928e6c96
tree657827f1fd4be55e2f1d52a661c8803b80c08de7
parentf395694c2cd76cb1882fa82dd37e761598367fe9
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