From 3277081522d8620f7410b173881d4b0267ce58f9 Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Sun, 12 Feb 2023 15:51:45 +1300 Subject: [PATCH] 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 --- fs/bcachefs/buckets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;