bcachefs: Improve btree node read error path
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 1 Feb 2023 20:45:45 +0000 (15:45 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:50 +0000 (17:09 -0400)
commit2e98404000e9c48c235c234bd179bb1acbf4c4e2
tree2c364795845e45583e187a632f88215ce81b0a0e
parent464b415539cc543addb45b85e76c44da145b114c
bcachefs: Improve btree node read error path

This ensures that failure to read a btree node error is treated as a
topology error, and returns the correct error so that the topology
repair pass will be run.

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