Commit db8a5f0a authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix bch2_mark_bkey_replicas() call

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 18c9883e
...@@ -797,8 +797,13 @@ int __bch2_btree_insert_at(struct btree_insert *trans) ...@@ -797,8 +797,13 @@ int __bch2_btree_insert_at(struct btree_insert *trans)
} }
bch2_btree_iter_unlock(trans->entries[0].iter); bch2_btree_iter_unlock(trans->entries[0].iter);
ret = bch2_mark_bkey_replicas(c, bkey_i_to_s_c(i->k)) ret = -EINTR;
?: -EINTR;
trans_for_each_iter(trans, i) {
int ret2 = bch2_mark_bkey_replicas(c, bkey_i_to_s_c(i->k));
if (ret2)
ret = ret2;
}
break; break;
default: default:
BUG_ON(ret >= 0); BUG_ON(ret >= 0);
......
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