diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-07-18 04:31:21 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:36 +0200 |
commit | 615f867c14b2d70efb02dafb8e668d984e74d0e3 (patch) | |
tree | 266f977a35d430198ba942f24e4dcbb73664f9fa /fs/bcachefs/Kconfig | |
parent | bcachefs: We can handle missing btree roots for all alloc btrees (diff) | |
download | linux-615f867c14b2d70efb02dafb8e668d984e74d0e3.tar.xz linux-615f867c14b2d70efb02dafb8e668d984e74d0e3.zip |
bcachefs: Improved errcodes
Instead of overloading standard error codes (EINTR/EAGAIN), and defining
short lists of error codes in multiple places that potentially end up
overlapping & conflicting, we're now going to have one master list of
error codes.
Error codes are defined with an x-macro: thus we also have
bch2_err_str() now.
Also, error codes have a class field. Now, instead of checking for
errors with ==, code should use bch2_err_matches(), which returns true
if the error is equal to or a sub-error of the error class.
This means we can define unique errors for every source location where
an error is generated, which will help improve our error messages.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/Kconfig')
-rw-r--r-- | fs/bcachefs/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig index 7ae85900e5b4..76953e05b240 100644 --- a/fs/bcachefs/Kconfig +++ b/fs/bcachefs/Kconfig @@ -21,6 +21,7 @@ config BCACHEFS_FS select XOR_BLOCKS select XXHASH select SRCU + select SYMBOLIC_ERRNAME help The bcachefs filesystem - a modern, copy on write filesystem, with support for multiple devices, compression, checksumming, etc. |