From a72cee838f512a64323fd74851d12ee17ed46358 Mon Sep 17 00:00:00 2001 From: Zhang Song Date: Thu, 22 Sep 2022 13:42:30 +0800 Subject: [PATCH] crimson/os/seastore: make can_delay_allocation always return true Signed-off-by: Zhang Song --- src/crimson/os/seastore/seastore_types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/os/seastore/seastore_types.cc b/src/crimson/os/seastore/seastore_types.cc index 65ebf598865..fd414988d38 100644 --- a/src/crimson/os/seastore/seastore_types.cc +++ b/src/crimson/os/seastore/seastore_types.cc @@ -766,8 +766,8 @@ std::ostream& operator<<(std::ostream& out, placement_hint_t h) bool can_delay_allocation(device_type_t type) { // Some types of device may not support delayed allocation, for example PMEM. - return (type >= device_type_t::NONE && - type <= device_type_t::RANDOM_BLOCK); + // All types of device currently support delayed allocation. + return true; } device_type_t string_to_device_type(std::string type) { -- 2.39.5