Fix seq_cutoff respecting in pt read

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2020-03-17 16:36:04 +01:00
parent 2edd05c812
commit 6f4d02f251
3 changed files with 5 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ int ocf_read_pt(struct ocf_request *req)
/* Traverse request to check if there are mapped cache lines */
ocf_engine_traverse(req);
if (req->info.seq_cutoff && ocf_engine_is_dirty_all(req)) {
if (req->seq_cutoff && ocf_engine_is_dirty_all(req)) {
use_cache = true;
} else {
if (ocf_engine_mapped_count(req)) {