Change get_effective_cache_mode to operate on req instead of io

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2020-03-17 16:34:45 +01:00
parent d84942daa3
commit 2edd05c812
6 changed files with 66 additions and 86 deletions

View File

@@ -8,6 +8,7 @@
#include "ocf_env.h"
#include "ocf_io_priv.h"
#include "engine/cache_engine.h"
struct ocf_req_allocator;
@@ -149,6 +150,8 @@ struct ocf_request {
ctx_data_t *cp_data;
/*!< Copy of request data */
ocf_req_cache_mode_t cache_mode;
uint64_t byte_position;
/*!< LBA byte position of request in core domain */
@@ -326,6 +329,8 @@ void ocf_req_clear_map(struct ocf_request *req);
*/
void ocf_req_hash(struct ocf_request *req);
int ocf_req_set_dirty(struct ocf_request *req);
/**
* @brief Clear OCF request
*