Fix remap line count for user partitions
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
parent
7b5084b21e
commit
8c3ed42fa2
@ -123,7 +123,7 @@ static inline uint32_t ocf_remap_do(struct ocf_request *req)
|
|||||||
* priority in this case, as overflown partitions should
|
* priority in this case, as overflown partitions should
|
||||||
* free its cachelines regardless of destination partition
|
* free its cachelines regardless of destination partition
|
||||||
* priority. */
|
* 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);
|
true, OCF_IO_CLASS_PRIO_PINNED);
|
||||||
if (remapped >= remap_cline_no)
|
if (remapped >= remap_cline_no)
|
||||||
return remapped;
|
return remapped;
|
||||||
|
Loading…
Reference in New Issue
Block a user