Merge pull request #537 from mmkayPL/cl-user-partitions-count

Fix remap line count for user partitions
This commit is contained in:
Robert Baldyga 2021-07-13 11:07:44 +02:00 committed by GitHub
commit 83e01e8f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ static inline uint32_t ocf_remap_do(struct ocf_request *req)
* priority in this case, as overflown partitions should
* free its cachelines regardless of destination partition
* priority. */
remapped += ocf_evict_user_partitions(cache, req, remap_cline_no,
remapped += ocf_evict_user_partitions(cache, req, remap_cline_no - remapped,
true, OCF_IO_CLASS_PRIO_PINNED);
if (remapped >= remap_cline_no)
return remapped;