bcache: Convert bch_btree_read_async() to bch_btree_map_keys()
authorKent Overstreet <kmo@daterainc.com>
Thu, 25 Jul 2013 00:41:08 +0000 (17:41 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 11 Nov 2013 05:56:07 +0000 (21:56 -0800)
commit2c1953e201a05ddfb1ea53f23d81a492c6513028
treec1a2d6cfefb094698a38db864d5a5a575cfd835b
parentdf8e89701fb02cba6e09c5f46f002778b5b52dd2
bcache: Convert bch_btree_read_async() to bch_btree_map_keys()

This is a fairly straightforward conversion, mostly reshuffling -
op->lookup_done goes away, replaced by MAP_DONE/MAP_CONTINUE. And the
code for handling cache hits and misses wasn't really btree code, so it
gets moved to request.c.

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