bcache: Have btree_split() insert into parent directly
authorKent Overstreet <kmo@daterainc.com>
Fri, 26 Jul 2013 19:32:38 +0000 (12:32 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 11 Nov 2013 05:56:40 +0000 (21:56 -0800)
commit17e21a9f248d3d330acdfb2405c23b8d84c9c23a
treedb958fc09cfe1ced10e5a50bef2b04bbf22ad796
parent65d22e911bfc4f46cda4751f1b1926b43c316c14
bcache: Have btree_split() insert into parent directly

The flow control in btree_insert_node() was... fragile... before,
this'll use more stack (but since our btrees are never more than depth
1, that shouldn't matter) and it should be significantly clearer and
less fragile.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/btree.c