aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/btree.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-07-24 17:41:13 -0700
committerKent Overstreet <kmo@daterainc.com>2013-11-10 21:56:08 -0800
commitcc23196631fbcd1bc3eafedbb712413fdbf946a3 (patch)
tree92f606edf7dc4b83ec5d1438f6e33b28e12af7bc /drivers/md/bcache/btree.h
parentbcache: Convert bch_btree_read_async() to bch_btree_map_keys() (diff)
downloadlinux-dev-cc23196631fbcd1bc3eafedbb712413fdbf946a3.tar.xz
linux-dev-cc23196631fbcd1bc3eafedbb712413fdbf946a3.zip
bcache: Clean up cache_lookup_fn
There was some looping in submit_partial_cache_hit() and submit_partial_cache_hit() that isn't needed anymore - originally, we wouldn't necessarily process the full hit or miss all at once because when splitting the bio, we took into account the restrictions of the device we were sending it to. But, device bio size restrictions are now handled elsewhere, with a wrapper around generic_make_request() - so that looping has been unnecessary for awhile now and we can now do quite a bit of cleanup. And if we trim the key we're reading from to match the subset we're actually reading, we don't have to explicitly calculate bi_sector anymore. Neat. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/btree.h')
0 files changed, 0 insertions, 0 deletions