]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/seastore: add ExtentMap node type in cache.cc
authorchunmei-liu <chunmei.liu@intel.com>
Tue, 27 Oct 2020 23:43:53 +0000 (16:43 -0700)
committerchunmei-liu <chunmei.liu@intel.com>
Tue, 27 Oct 2020 23:43:53 +0000 (16:43 -0700)
Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
src/crimson/os/seastore/cache.cc

index ce09bc7a333ef979695bdf0b9e643e9f3b710aa5..1b2a22391ce82563c84cc9f6a94dce9dc1bd4956 100644 (file)
@@ -131,6 +131,10 @@ 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::EXTMAP_INNER:
+    return alloc_new_extent<extentmap_manager::ExtMapInnerNode>(t, length);
+  case extent_types_t::EXTMAP_LEAF:
+    return alloc_new_extent<extentmap_manager::ExtMapLeafNode>(t, length);
   case extent_types_t::TEST_BLOCK:
     return alloc_new_extent<TestBlock>(t, length);
   case extent_types_t::TEST_BLOCK_PHYSICAL: