Commit 21e07cc9 authored by Daniel Hill's avatar Daniel Hill Committed by Kent Overstreet

bcachefs: remove redundant condition from data_update_index_update

Signed-off-by: default avatarDaniel Hill <daniel@gluo.nz>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a79e1b6d
...@@ -314,7 +314,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans, ...@@ -314,7 +314,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
} }
continue; continue;
nowork: nowork:
if (m->stats && m->stats) { if (m->stats) {
BUG_ON(k.k->p.offset <= iter.pos.offset); BUG_ON(k.k->p.offset <= iter.pos.offset);
atomic64_inc(&m->stats->keys_raced); atomic64_inc(&m->stats->keys_raced);
atomic64_add(k.k->p.offset - iter.pos.offset, atomic64_add(k.k->p.offset - iter.pos.offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment