]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't put removals from push_node_left into tree mod log twice
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 19 Oct 2012 07:22:03 +0000 (09:22 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 23 Oct 2012 13:09:11 +0000 (15:09 +0200)
commit8b7f3349476136bfe37d95dc13bb502fd64f5da6
tree785127860e4b9bae2543ecf940cbec80d5de997d
parentbb029b1a419e51852157c33cef9c8d2c5417ccfd
Btrfs: don't put removals from push_node_left into tree mod log twice

Independant of the check (push_items < src_items) tree_mod_log_eb_copy did
log the removal of the old data entries from the source buffer. Therefore,
we must not call tree_mod_log_eb_move if the check evaluates to true, as
that would log the removal twice, finally resulting in (rewinded) buffers
with wrong values for header_nritems.

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