]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: add missing type in Cache::alloc_new_extent_by_type() 39655/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 24 Feb 2021 05:48:07 +0000 (13:48 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 24 Feb 2021 05:48:07 +0000 (13:48 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc

index b88e6480c6e54eabdfc8522f10c1b3b0bbe09de3..2b42322a3633ea09feac9f753c2fd657b9a558f2 100644 (file)
@@ -143,6 +143,8 @@ CachedExtentRef Cache::alloc_new_extent_by_type(
     return alloc_new_extent<lba_manager::btree::LBALeafNode>(t, length);
   case extent_types_t::ONODE_BLOCK:
     return alloc_new_extent<OnodeBlock>(t, length);
+  case extent_types_t::ONODE_BLOCK_STAGED:
+    return alloc_new_extent<onode::SeastoreNodeExtent>(t, length);
   case extent_types_t::EXTMAP_INNER:
     return alloc_new_extent<extentmap_manager::ExtMapInnerNode>(t, length);
   case extent_types_t::EXTMAP_LEAF:
@@ -499,8 +501,6 @@ Cache::get_root_ret Cache::get_root(Transaction &t)
   }
 }
 
-using StagedOnodeBlock = crimson::os::seastore::onode::SeastoreNodeExtent;
-
 Cache::get_extent_ertr::future<CachedExtentRef> Cache::get_extent_by_type(
   extent_types_t type,
   paddr_t offset,
@@ -553,7 +553,7 @@ Cache::get_extent_ertr::future<CachedExtentRef> Cache::get_extent_by_type(
        return CachedExtentRef(extent.detach(), false /* add_ref */);
       });
     case extent_types_t::ONODE_BLOCK_STAGED:
-      return get_extent<StagedOnodeBlock>(offset, length
+      return get_extent<onode::SeastoreNodeExtent>(offset, length
       ).safe_then([](auto extent) {
        return CachedExtentRef(extent.detach(), false /* add_ref */);
       });