Assert number of cachelines to evict
Number of cachelines to evcit can't be greater than the number of unmapped entries in request. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
4e8c037d7b
commit
71ec08c158
@ -683,6 +683,8 @@ uint32_t evp_lru_req_clines(struct ocf_request *req,
|
||||
|
||||
++req_idx;
|
||||
++i;
|
||||
/* Number of cachelines to evict have to match space in the request */
|
||||
ENV_BUG_ON(req_idx == req->core_line_count && i != cline_no );
|
||||
}
|
||||
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user