I* image_ctx, plugin::Api<I>& plugin_api, int &r) {
std::string cache_state_str;
ImageCacheState<I>* cache_state = nullptr;
- ldout(image_ctx->cct, 20) << "image_cache_state:" << cache_state_str << dendl;
r = 0;
bool dirty_cache = plugin_api.test_image_features(image_ctx, RBD_FEATURE_DIRTY_CACHE);
IMAGE_CACHE_STATE, &cache_state_str);
}
+ ldout(image_ctx->cct, 20) << "image_cache_state: " << cache_state_str << dendl;
+
bool pwl_enabled = cache::util::is_pwl_enabled(*image_ctx);
bool cache_desired = pwl_enabled;
cache_desired &= !image_ctx->read_only;