From: Kent Overstreet Date: Fri, 10 Mar 2023 19:34:30 +0000 (-0500) Subject: bcachefs: Suppress transaction restart err message X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=51fe0332b1e39822a6d67a0da656fcfc0db03e99;p=linux.git bcachefs: Suppress transaction restart err message This isn't a real error, and doesn't need to be printed. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index e232f331ae9a4..5e6dc6c316d12 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -954,11 +954,11 @@ static int check_inode(struct btree_trans *trans, iter->pos.snapshot), POS(u.bi_inum, U64_MAX), 0, NULL); - if (ret) { + if (ret && !bch2_err_matches(ret, BCH_ERR_transaction_restart)) bch_err(c, "error in fsck: error truncating inode: %s", bch2_err_str(ret)); + if (ret) return ret; - } /* * We truncated without our normal sector accounting hook, just