]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Use bch2_trans_inconsistent() more
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 7 Apr 2022 21:34:57 +0000 (17:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:30 +0000 (17:09 -0400)
This gets us better error messages.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update_leaf.c

index 2c20ad89ca0a790a4deeea5d81979628e4f65491..c502e96748d8daba59008cfb939849a7b8c670b8 100644 (file)
@@ -880,7 +880,7 @@ static inline int do_bch2_trans_commit(struct btree_trans *trans,
                        bch2_bkey_invalid(c, bkey_i_to_s_c(i->k),
                                          i->bkey_type, WRITE, &buf);
 
-                       bch2_fs_fatal_error(c, "%s", buf.buf);
+                       bch2_trans_inconsistent(trans, "%s", buf.buf);
                        printbuf_exit(&buf);
                        return -EINVAL;
                }