Fix remap line count for user partitions

Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
Kozlowski Mateusz 2021-07-12 16:49:14 +02:00
parent 7b5084b21e
commit 8c3ed42fa2

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;