Btrfs: dont do log_removal in insert_new_root
authorLiu Bo <[email protected]>
Wed, 22 May 2013 12:06:51 +0000 (12:06 +0000)
committerJosef Bacik <[email protected]>
Fri, 14 Jun 2013 15:29:57 +0000 (11:29 -0400)
commitfdd99c729433ed6ab8d02aa4760c6708a6c5de2a
treef6bf5f43bafee895411faee747b1c12d376329e3
parent4b286cd1f51a9cb6056269dd50ba4745b2622df4
Btrfs: dont do log_removal in insert_new_root

As for splitting a leaf, root is just the leaf, and tree mod log does not apply
on leaf, so in this case, we don't do log_removal.

As for splitting a node, the old root is kept as a normal node and we have nicely
put records in tree mod log for moving keys and items, so in this case we don't do
that either.

As above, insert_new_root can get rid of log_removal.

Signed-off-by: Liu Bo <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
fs/btrfs/ctree.c