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>
This commit is contained in:
Kent Overstreet
2013-09-10 18:52:54 -07:00
rodzic faadf0c965
commit 1b207d80d5
7 zmienionych plików z 71 dodań i 73 usunięć

Wyświetl plik

@@ -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);