summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-26 07:39:25 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:15 +0200
commita190cbcfa029b7921cfda484e2a125649496941e (patch)
treed1b66350cb4bbd2e66dd1fecf11f7a301a58ad35 /fs/bcachefs
parentbcachefs: More assertions for nocow locking (diff)
downloadlinux-a190cbcfa029b7921cfda484e2a125649496941e.tar.xz
linux-a190cbcfa029b7921cfda484e2a125649496941e.zip
bcachefs: Silence transaction restart error message
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-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 206302b0f5ed..2ef14adb4cb2 100644
--- a/fs/bcachefs/fsck.c
+++ b/fs/bcachefs/fsck.c
@@ -971,10 +971,10 @@ static int check_inode(struct btree_trans *trans,
if (do_update) {
ret = __write_inode(trans, &u, iter->pos.snapshot);
- if (ret) {
+ if (ret && !bch2_err_matches(ret, BCH_ERR_transaction_restart))
bch_err_msg(c, ret, "in fsck updating inode");
+ if (ret)
return ret;
- }
}
err:
fsck_err: