bcachefs: Plumb saw_error through to btree_err()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 3 Jan 2023 22:32:16 +0000 (17:32 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:48 +0000 (17:09 -0400)
commit494dcc57a7bf639c39364b5f84c1b6db39a0f83a
tree354f11edc6aabe10c21dda63317aac2e14781c7f
parentb8fe1b1dfecc10e571f82327d61c693720d39b19
bcachefs: Plumb saw_error through to btree_err()

The btree node read path has the ability to kick off an asynchronous
btree node rewrite if we saw and corrected an error. Previously this was
only used for errors that caused one of the replicas to be unusable -
this patch plumbs it through to all error paths, so that normal fsck
errors can be corrected.

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