From: Kent Overstreet Date: Thu, 25 Jul 2013 00:22:44 +0000 (-0700) Subject: bcache: Insert multiple keys at a time X-Git-Tag: v3.13-rc1~68^2~1^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403b6cdeb1a38d896ffcb1f99ddcfd4e343b5d69;p=pandora-kernel.git bcache: Insert multiple keys at a time We'll often end up with a list of adjacent keys to insert - because bch_data_insert() may have to fragment the data it writes. Originally, to simplify things and avoid having to deal with corner cases bch_btree_insert() would pass keys from this list one at a time to btree_insert_recurse() - mainly because the list of keys might span leaf nodes, so it was easier this way. With the btree_insert_node() refactoring, it's now a lot easier to just pass down the whole list and have btree_insert_recurse() iterate over leaf nodes until it's done. Signed-off-by: Kent Overstreet --- Reading git-diff-tree failed