]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: Don't set BCH_FS_error on transaction restart
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 8 Jul 2025 19:21:39 +0000 (15:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 8 Jul 2025 19:24:15 +0000 (15:24 -0400)
commitfec5e6f97dae5fbd628c444148b77728eae3bb93
tree5cc3d8ab59208f5043bb091d4211a931a4f7d27c
parent74f3931a1bfea5822e8953a15c8ebc587dc6b4bc
bcachefs: Don't set BCH_FS_error on transaction restart

This started showing up more when we started logging the error being
corrected in the journal - but __bch2_fsck_err() could return
transaction restarts before that.

Setting BCH_FS_error incorrectly causes recovery passes to not be
cleared, among other issues.

Fixes: b43f72492768 ("bcachefs: Log fsck errors in the journal")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.c