Error codes in IO path changed to OCF-specific

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-05-27 09:49:54 +02:00
parent 8a053c423c
commit 9f4536c6e3
22 changed files with 111 additions and 91 deletions

View File

@@ -584,7 +584,7 @@ static int _ocf_engine_refresh(struct ocf_request *req)
ENV_BUG();
} else {
ENV_WARN(true, "Inconsistent request");
req->error = -EINVAL;
req->error = -OCF_ERR_INVAL;
/* Complete request */
req->complete(req, req->error);