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

@@ -242,7 +242,7 @@ void ocf_submit_cache_reqs(struct ocf_cache *cache,
if (reqs == 1) {
io = ocf_new_cache_io(cache);
if (!io) {
callback(req, -ENOMEM);
callback(req, -OCF_ERR_NO_MEM);
goto update_stats;
}
@@ -277,7 +277,7 @@ void ocf_submit_cache_reqs(struct ocf_cache *cache,
if (!io) {
/* Finish all IOs which left with ERROR */
for (; i < reqs; i++)
callback(req, -ENOMEM);
callback(req, -OCF_ERR_NO_MEM);
goto update_stats;
}
@@ -342,7 +342,7 @@ void ocf_submit_volume_req(ocf_volume_t volume, struct ocf_request *req,
io = ocf_volume_new_io(volume);
if (!io) {
callback(req, -ENOMEM);
callback(req, -OCF_ERR_NO_MEM);
return;
}