Improvement of metadata flush setting

Signed-off-by: xqzhou <xue.qiang.zhou@intel.com>
This commit is contained in:
xqzhou
2019-02-01 05:38:54 -07:00
parent 21012df2f8
commit bbb0e1bbb0
2 changed files with 7 additions and 5 deletions

View File

@@ -117,7 +117,8 @@ void ocf_engine_update_req_info(struct ocf_cache *cache,
req->info.dirty_any++;
/* Check if cache line is fully dirty */
if (metadata_test_dirty_all(cache, _entry->coll_idx))
if (metadata_test_dirty_sec(cache, _entry->coll_idx,
start_sector, end_sector))
req->info.dirty_all++;
}