From: Zhang Song Date: Thu, 22 Sep 2022 05:42:30 +0000 (+0800) Subject: crimson/os/seastore: make can_delay_allocation always return true X-Git-Tag: v18.1.0~429^2~14^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a72cee838f512a64323fd74851d12ee17ed46358;p=ceph-ci.git crimson/os/seastore: make can_delay_allocation always return true Signed-off-by: Zhang Song --- 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) {