cleaner: skip metadata flush in volatile mode
Signed-off-by: Amir Haroush <amir.haroush@huawei.com> Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
bf679ecb49
commit
7930ef9c21
@ -376,7 +376,11 @@ static int _ocf_cleaner_update_metadata(struct ocf_request *req)
|
||||
req->map[i].core_line);
|
||||
}
|
||||
|
||||
if (!req->cache->metadata.is_volatile) {
|
||||
ocf_metadata_flush_do_asynch(cache, req, _ocf_cleaner_metadata_io_end);
|
||||
} else {
|
||||
_ocf_cleaner_finish_req(req);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user