summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-09-11 05:52:54 +0400
committerKent Overstreet <kmo@daterainc.com>2013-11-11 09:56:29 +0400
commit1b207d80d5b986fb305bc899357435d319319513 (patch)
treebf75b0befff3f48606832df0a64ced1c3c3ae91d /drivers/md/bcache/movinggc.c
parentfaadf0c96547ec8277ad0abd6959f2ef48522f31 (diff)
downloadlinux-1b207d80d5b986fb305bc899357435d319319513.tar.xz
bcache: Kill op->replace
This is prep work for converting bch_btree_insert to bch_btree_map_leaf_nodes() - we have to convert all its arguments to actual arguments. Bunch of churn, but should be straightforward. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/movinggc.c')
-rw-r--r--drivers/md/bcache/movinggc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/movinggc.c b/drivers/md/bcache/movinggc.c
index 219356f6159d..c45ba4f21bae 100644
--- a/drivers/md/bcache/movinggc.c
+++ b/drivers/md/bcache/movinggc.c
@@ -105,8 +105,8 @@ static void write_moving(struct closure *cl)
s->writeback = KEY_DIRTY(&io->w->key);
s->csum = KEY_CSUM(&io->w->key);
- s->op.type = BTREE_REPLACE;
- bkey_copy(&s->op.replace, &io->w->key);
+ bkey_copy(&s->replace_key, &io->w->key);
+ s->replace = true;
closure_init(&s->btree, cl);
bch_data_insert(&s->btree);