Track explicit number of cachelines to be reparted

Instead of redunant calculating number of cachlines to be reparted, keep this
information in request's info

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2020-11-12 02:55:08 -05:00
parent 4329e617cf
commit e26ca30399
3 changed files with 29 additions and 1 deletions

View File

@@ -13,9 +13,10 @@
struct ocf_req_allocator;
struct ocf_req_info {
/* Number of hits, invalid, misses. */
/* Number of hits, invalid, misses, reparts. */
unsigned int hit_no;
unsigned int invalid_no;
unsigned int re_part_no;
uint32_t dirty_all;
/*!< Number of dirty line in request*/