diff options
author | Matthew Sakai <msakai@redhat.com> | 2024-02-28 03:22:59 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-04 23:07:56 +0300 |
commit | ee8f6ec1b16044510a82eb9a3f7059a35d4fb09a (patch) | |
tree | 5faba166bb519056b90620746a7754ba5d051f29 /drivers/md/dm-vdo/errors.h | |
parent | 8f89115efc1e8f34dd3182e2f3f7064225b52762 (diff) | |
download | linux-ee8f6ec1b16044510a82eb9a3f7059a35d4fb09a.tar.xz |
dm vdo errors: remove unused error codes
Also define VDO_SUCCESS in a more central location, and
rename error block constants for clarity.
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-vdo/errors.h')
-rw-r--r-- | drivers/md/dm-vdo/errors.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/md/dm-vdo/errors.h b/drivers/md/dm-vdo/errors.h index cf15d7243204..c6c085b26a0e 100644 --- a/drivers/md/dm-vdo/errors.h +++ b/drivers/md/dm-vdo/errors.h @@ -9,12 +9,13 @@ #include <linux/compiler.h> #include <linux/types.h> -/* Custom error codes and error-related utilities for UDS */ +/* Custom error codes and error-related utilities */ +#define VDO_SUCCESS 0 /* Valid status codes for internal UDS functions. */ enum uds_status_codes { /* Successful return */ - UDS_SUCCESS = 0, + UDS_SUCCESS = VDO_SUCCESS, /* Used as a base value for reporting internal errors */ UDS_ERROR_CODE_BASE = 1024, /* Index overflow */ @@ -29,20 +30,12 @@ enum uds_status_codes { UDS_ASSERTION_FAILED, /* A request has been queued for later processing (not an error) */ UDS_QUEUED, - /* A problem has occurred with a buffer */ - UDS_BUFFER_ERROR, - /* No directory was found where one was expected */ - UDS_NO_DIRECTORY, /* This error range has already been registered */ UDS_ALREADY_REGISTERED, /* Attempt to read or write data outside the valid range */ UDS_OUT_OF_RANGE, - /* Could not load modules */ - UDS_EMODULE_LOAD, /* The index session is disabled */ UDS_DISABLED, - /* Unknown error */ - UDS_UNKNOWN_ERROR, /* The index configuration or volume format is no longer supported */ UDS_UNSUPPORTED_VERSION, /* Some index structure is corrupt */ |