diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-26 07:39:25 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:15 +0200 |
commit | a190cbcfa029b7921cfda484e2a125649496941e (patch) | |
tree | d1b66350cb4bbd2e66dd1fecf11f7a301a58ad35 | |
parent | bcachefs: More assertions for nocow locking (diff) | |
download | linux-a190cbcfa029b7921cfda484e2a125649496941e.tar.xz linux-a190cbcfa029b7921cfda484e2a125649496941e.zip |
bcachefs: Silence transaction restart error message
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fsck.c | 4 |
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: |