aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-07-24 20:24:25 -0400
committerKent Overstreet <kmo@daterainc.com>2013-11-11 00:56:00 -0500
commitc2f95ae2ebbe1ab61b1d4437f5923fdf720d4d4d (patch)
tree67da94194f87693f7c280176cfc5a13c6162eea0 /drivers/md/bcache/request.c
parent4f3d40147b8d0ce7055e241e1d263e0aa2b2b46d (diff)
bcache: Clean up keylist code
More random refactoring. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 7fd84ce9e835..a000e918b795 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -438,13 +438,13 @@ static void bch_insert_data_error(struct closure *cl)
438 * from the keys we'll accomplish just that. 438 * from the keys we'll accomplish just that.
439 */ 439 */
440 440
441 struct bkey *src = op->keys.bottom, *dst = op->keys.bottom; 441 struct bkey *src = op->keys.keys, *dst = op->keys.keys;
442 442
443 while (src != op->keys.top) { 443 while (src != op->keys.top) {
444 struct bkey *n = bkey_next(src); 444 struct bkey *n = bkey_next(src);
445 445
446 SET_KEY_PTRS(src, 0); 446 SET_KEY_PTRS(src, 0);
447 bkey_copy(dst, src); 447 memmove(dst, src, bkey_bytes(src));
448 448
449 dst = bkey_next(dst); 449 dst = bkey_next(dst);
450 src = n; 450 src = n;