Commit 037e6390 authored by Chris Mason's avatar Chris Mason Committed by David Woodhouse

Btrfs: get rid of add recursion

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent a28ec197
CC=gcc
CFLAGS = -g -Wall
CFLAGS = -Wall
headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h list.h
objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
......
......@@ -995,15 +995,6 @@ static int split_leaf(struct ctree_root *root, struct ctree_path *path,
int ret;
int wret;
wret = push_leaf_left(root, path, data_size);
if (wret < 0)
return wret;
if (wret) {
wret = push_leaf_right(root, path, data_size);
if (wret < 0)
return wret;
}
l_buf = path->nodes[0];
l = &l_buf->leaf;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment