bcachefs: Don't run triggers when repairing in __bch2_mark_reflink_p()
authorDaniel Hill <daniel@gluo.nz>
Sun, 12 Feb 2023 02:51:45 +0000 (15:51 +1300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
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>
fs/bcachefs/buckets.c

index 32750a65d37ab3b207a1e858865ac06fc5f06a8e..2e1751eeaef4428fb54f50c2f43729171eafa4ae 100644 (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;