From dd4804fb05ad8aca51516b0112975cc91ef85a6b Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Wed, 8 Aug 2018 15:31:47 +0800 Subject: [PATCH 07/10] librbd: cleanup policy based promotion/eviction Signed-off-by: Yuan Zhou --- src/common/options.cc | 4 + .../rbd_cache/CacheControllerSocketClient.hpp | 3 +- src/tools/rbd_cache/ObjectCacheStore.cc | 63 +++---- src/tools/rbd_cache/ObjectCacheStore.h | 10 +- src/tools/rbd_cache/Policy.hpp | 18 +- src/tools/rbd_cache/SimplePolicy.hpp | 188 +++++++++------------ 6 files changed, 141 insertions(+), 145 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 7839a31..b334c1e 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6365,6 +6365,10 @@ static std::vector