From: Daniel Hill Date: Sun, 12 Feb 2023 02:51:45 +0000 (+1300) Subject: bcachefs: Don't run triggers when repairing in __bch2_mark_reflink_p() X-Git-Tag: io_uring-6.7-2023-11-10~119^2~517 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3277081522d8620f7410b173881d4b0267ce58f9;p=linux-block.git 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 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 32750a65d37a..2e1751eeaef4 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -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;