Commit 78854fca authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix BTREE_INSERT_NOMARK_OVERWRITES

bch2_mark_update() was correct, but bch2_trans_mark_update() wasn't
respecting BTREE_INSERT_NOMARK_OVERWRITES - key marking/triggers really
need to be cleaned up.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 06ab329c
......@@ -1762,6 +1762,9 @@ int bch2_trans_mark_update(struct btree_trans *trans,
if (ret)
return ret;
if (unlikely(trans->flags & BTREE_INSERT_NOMARK_OVERWRITES))
return 0;
while ((_k = bch2_btree_node_iter_peek_filter(&node_iter, b,
KEY_TYPE_discard))) {
struct bkey unpacked;
......
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