From 8c3ed42fa24c44b0710e0634aab3302e191f94f4 Mon Sep 17 00:00:00 2001 From: Kozlowski Mateusz Date: Mon, 12 Jul 2021 16:49:14 +0200 Subject: [PATCH] Fix remap line count for user partitions Signed-off-by: Kozlowski Mateusz --- src/ocf_space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocf_space.c b/src/ocf_space.c index e9a4ef1..d0c639b 100644 --- a/src/ocf_space.c +++ b/src/ocf_space.c @@ -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;