bcachefs: Clean up error reporting in the startup path
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 6 Nov 2021 01:28:17 +0000 (21:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:16 +0000 (17:09 -0400)
commite2b605601ad56904c700569a11fc73db7ecc7acd
tree92289a3c5d3869b735e0c1c58a9cf2bf027945fe
parent7be9ab637fb9c5283c5d1b3f41d81bc2c01ad548
bcachefs: Clean up error reporting in the startup path

It used to be that error reporting in the startup path was done by
returning strings describing the error, but that turned out to be a
rather silly idea - if there's something we can describe about the
error, just print it right away.

This converts a good chunk of code to returning error codes, as is more
typical style.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/super.c