Btrfs: don't run __tree_mod_log_free_eb on leaves
authorChris Mason <chris.mason@fusionio.com>
Tue, 7 Aug 2012 19:34:49 +0000 (15:34 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:34 +0000 (16:53 -0400)
commitb12a3b1ea209d9dec02731fba58c3dbe7d31cfd8
tree9e4a1e663a040b5b8af6b266bcb53a6a7fba437f
parent6fc823b10f333313deb0b5d9069cbfd3a3f99f3a
Btrfs: don't run __tree_mod_log_free_eb on leaves

When we split a leaf, we may end up inserting a new root on top of that
leaf.  The reflog code was incorrectly assuming the old root was always
a node.  This makes sure we skip over leaves.

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.c