Merge pull request #1089 from robertbaldyga/remove-error-code
Remove unnecessary error code
This commit is contained in:
commit
4317c917d0
@ -170,10 +170,6 @@ struct {
|
||||
OCF_ERR_NO_LOCK,
|
||||
"Failed to lock cache for management operation."
|
||||
},
|
||||
{
|
||||
OCF_ERR_METADATA_LAYOUT_MISMATCH,
|
||||
"Metadata layout mismatch"
|
||||
},
|
||||
{
|
||||
OCF_ERR_CACHE_LINE_SIZE_MISMATCH,
|
||||
"Cache line size mismatch"
|
||||
|
@ -2388,13 +2388,13 @@ err:
|
||||
ocf_mngt_cache_stop(cache, _cache_mngt_cache_stop_rollback_complete,
|
||||
context);
|
||||
rollback_result = wait_for_completion_interruptible(&context->async.cmpl);
|
||||
|
||||
|
||||
rollback_result = _cache_mngt_async_caller_set_result(&context->async,
|
||||
rollback_result);
|
||||
|
||||
|
||||
if (rollback_result != -KCAS_ERR_WAITING_INTERRUPTED)
|
||||
kfree(context);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,6 @@ static struct cas_error_map_entry cas_ocf_error_map[] = {
|
||||
{ OCF_ERR_CACHE_NAME_MISMATCH, EINVAL },
|
||||
{ OCF_ERR_INVAL_CACHE_DEV, EINVAL },
|
||||
{ OCF_ERR_CORE_UUID_EXISTS, EINVAL },
|
||||
{ OCF_ERR_METADATA_LAYOUT_MISMATCH, EINVAL },
|
||||
{ OCF_ERR_CACHE_LINE_SIZE_MISMATCH, EINVAL },
|
||||
{ OCF_ERR_CACHE_STANDBY, EBUSY },
|
||||
};
|
||||
|
2
ocf
2
ocf
@ -1 +1 @@
|
||||
Subproject commit be4927f52409c5eb0bcb2078a6e536fd1e9c3cf8
|
||||
Subproject commit 4690cd60fea0645cf8207d7fbba2b318783b10f4
|
Loading…
Reference in New Issue
Block a user