}
bool can_drop_backref() const {
- return get_backend_type() == backend_type_t::RANDOM_BLOCK;
+ return !tail_include_alloc;
}
bool should_trim_alloc() const {
bool is_pure_rbm() const {
return get_main_backend_type() == backend_type_t::RANDOM_BLOCK &&
- // as of now, cold tier can only be segmented.
- !background_process.has_cold_tier();
+ (!background_process.has_cold_tier() ||
+ (background_process.get_cold_tier_backend_type() ==
+ backend_type_t::RANDOM_BLOCK));
}
bool has_cold_tier() const {
return cold_cleaner.get() != nullptr;
}
+ backend_type_t get_cold_tier_backend_type() const {
+ assert(cold_cleaner);
+ return cold_cleaner->get_backend_type();
+ }
+
bool is_cold_device(device_id_t id) const {
if (!has_cold_tier()) {
return false;