summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-10 14:34:30 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-03-13 11:35:11 -0400
commitee36110487eeb6aeea35ecdd7f58001473681baf (patch)
tree4fc285f3bf3b5971013400a41e106a0104777e2d
parent7e19139e8fc3be24cb8d9e58199ca5bfb3ee45b4 (diff)
bcachefs: Suppress transaction restart err message
This isn't a real error, and doesn't need to be printed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/fsck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c
index e232f331ae9a..5e6dc6c316d1 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