]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: make can_delay_allocation always return true
authorZhang Song <zhangsong325@gmail.com>
Thu, 22 Sep 2022 05:42:30 +0000 (13:42 +0800)
committerZhang Song <zhangsong325@gmail.com>
Thu, 22 Sep 2022 05:45:55 +0000 (13:45 +0800)
Signed-off-by: Zhang Song <zhangsong325@gmail.com>
src/crimson/os/seastore/seastore_types.cc

index 65ebf5988650a4237d9b7cf64bbf2078c84e775e..fd414988d3846b6aea77dbe6e074397011c77261 100644 (file)
@@ -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) {