bcachefs: remove redundant condition from data_update_index_update

Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Daniel Hill 2023-11-27 21:52:33 +13:00 committed by Kent Overstreet
parent a79e1b6dea
commit 21e07cc966

View File

@ -314,7 +314,7 @@ next:
}
continue;
nowork:
if (m->stats && m->stats) {
if (m->stats) {
BUG_ON(k.k->p.offset <= iter.pos.offset);
atomic64_inc(&m->stats->keys_raced);
atomic64_add(k.k->p.offset - iter.pos.offset,