diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-07-24 21:06:22 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 00:56:30 -0500 |
commit | 6054c6d4da1940c7bf8870c6393773aa794f53d8 (patch) | |
tree | 5851d01503e16884cc733284ae102d27d0fe71ca /drivers/md/bcache/movinggc.c | |
parent | 1b207d80d5b986fb305bc899357435d319319513 (diff) |
bcache: Don't use op->insert_collision
When we convert bch_btree_insert() to bch_btree_map_leaf_nodes(), we
won't be passing struct btree_op to bch_btree_insert() anymore - so we
need a different way of returning whether there was a collision (really,
a replace collision).
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/movinggc.c')
-rw-r--r-- | drivers/md/bcache/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/movinggc.c b/drivers/md/bcache/movinggc.c index c45ba4f21bae..601c96a62b30 100644 --- a/drivers/md/bcache/movinggc.c +++ b/drivers/md/bcache/movinggc.c | |||
@@ -52,7 +52,7 @@ static void write_moving_finish(struct closure *cl) | |||
52 | bio_for_each_segment_all(bv, bio, i) | 52 | bio_for_each_segment_all(bv, bio, i) |
53 | __free_page(bv->bv_page); | 53 | __free_page(bv->bv_page); |
54 | 54 | ||
55 | if (io->s.op.insert_collision) | 55 | if (io->s.insert_collision) |
56 | trace_bcache_gc_copy_collision(&io->w->key); | 56 | trace_bcache_gc_copy_collision(&io->w->key); |
57 | 57 | ||
58 | bch_keybuf_del(&io->s.c->moving_gc_keys, io->w); | 58 | bch_keybuf_del(&io->s.c->moving_gc_keys, io->w); |