bcachefs: Don't run triggers when repairing in __bch2_mark_reflink_p()

Triggers current trip-up on the faulty reflink we're trying to repair,
Disabling them lets us fix broken reflink and continue.

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-02-12 15:51:45 +13:00 committed by Kent Overstreet
parent 8ffa11a2c5
commit 3277081522

View File

@ -1225,7 +1225,7 @@ not_found:
new->k.p.offset += *idx - start;
bch2_key_resize(&new->k, next_idx - *idx);
ret = __bch2_btree_insert(trans, BTREE_ID_extents, &new->k_i,
0);
BTREE_TRIGGER_NORUN);
}
*idx = next_idx;