From 4f228317a11e89b1e8b17ed21c79d39dc226bc71 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Thu, 26 Nov 2020 18:24:29 -0500 Subject: [PATCH] Update docs for `space_managment_evict_do()` Signed-off-by: Michal Mielewczyk --- src/eviction/eviction.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eviction/eviction.h b/src/eviction/eviction.h index 4843d37..a385c68 100644 --- a/src/eviction/eviction.h +++ b/src/eviction/eviction.h @@ -58,11 +58,11 @@ struct eviction_policy_ops { extern struct eviction_policy_ops evict_policy_ops[ocf_eviction_max]; /* - * Deallocates space from low priority partitions. + * Deallocates space according to eviction priorities. * - * Returns -1 on error - * or the destination partition ID for the free buffers - * (it matches label and is part of the object (#core_id) IO group) + * @returns: + * 'LOOKUP_HIT' if evicted enough cachelines to serve @req + * 'LOOKUP_MISS' otherwise */ int space_managment_evict_do(ocf_cache_t cache, struct ocf_request *req, uint32_t evict_cline_no);