]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 11 Sep 2013 02:08:07 +0000 (19:08 -0700)
commitd5aa1b8ed1b1e480b1bc19e4c4e4ebd83d49fa13
treea9c4410bd4b94d6a93645a0f387697c0c2bbb42c
parent51e7d977b8a58a6eff2f9b59a752ccbb3fbe4f52
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