diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-01-26 21:42:27 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-02-20 13:43:17 -0500 |
commit | 86492a3f698de5d66777ba18e06e030cb2c5cf9a (patch) | |
tree | d4e8fd8ec1f7c42b3a1875be499b2dcac91e66f4 /drivers/md/dm-vdo/status-codes.h | |
parent | b06d5c37b88b97359e98820eecae99e243512c1b (diff) | |
download | linux-stable-86492a3f698de5d66777ba18e06e030cb2c5cf9a.tar.gz linux-stable-86492a3f698de5d66777ba18e06e030cb2c5cf9a.tar.bz2 linux-stable-86492a3f698de5d66777ba18e06e030cb2c5cf9a.zip |
dm vdo: slight cleanup of UDS error codes
No need to increment each UDS_ error code manually (relative to
UDS_ERROR_CODE_BASE).
Also, remove unused PRP_BLOCK_START and PRP_BLOCK_END.
Lastly, UDS_SUCCESS and VDO_SUCCESS are used interchangeably; so best
to explicitly set VDO_SUCCESS equal to UDS_SUCCESS.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-vdo/status-codes.h')
-rw-r--r-- | drivers/md/dm-vdo/status-codes.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm-vdo/status-codes.h b/drivers/md/dm-vdo/status-codes.h index c5da37ec8b55..9e0126a83c6b 100644 --- a/drivers/md/dm-vdo/status-codes.h +++ b/drivers/md/dm-vdo/status-codes.h @@ -12,14 +12,12 @@ enum { UDS_BLOCK_SIZE = UDS_ERROR_CODE_BLOCK_END - UDS_ERROR_CODE_BASE, VDO_BLOCK_START = UDS_ERROR_CODE_BLOCK_END, VDO_BLOCK_END = VDO_BLOCK_START + UDS_BLOCK_SIZE, - PRP_BLOCK_START = VDO_BLOCK_END, - PRP_BLOCK_END = PRP_BLOCK_START + UDS_BLOCK_SIZE, }; /* VDO-specific status codes. */ enum vdo_status_codes { /* successful result */ - VDO_SUCCESS, + VDO_SUCCESS = UDS_SUCCESS, /* base of all VDO errors */ VDO_STATUS_CODE_BASE = VDO_BLOCK_START, /* we haven't written this yet */ |