]> www.infradead.org Git - users/hch/block.git/commit
bcachefs: Fix fsck warnings from bkey validation
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 26 Sep 2024 20:51:19 +0000 (16:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 28 Sep 2024 01:46:35 +0000 (21:46 -0400)
commit5612daafb76420c6793dc48ce6d0c20f36cc7981
tree75c49d5114fce33b304499de964a165fc9baae04
parent7c980a43e936e32741a62bf5a047c5f5ad572ec8
bcachefs: Fix fsck warnings from bkey validation

__bch2_fsck_err() warns if the current task has a btree_trans object and
it wasn't passed in, because if it has to prompt for user input it has
to be able to unlock it.

But plumbing the btree_trans through bkey_validate(), as well as
transaction restarts, is problematic - so instead make bkey fsck errors
FSCK_AUTOFIX, which doesn't need to warn.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.c
fs/bcachefs/error.h