From: Yingxin Cheng Date: Wed, 24 Feb 2021 05:48:07 +0000 (+0800) Subject: crimson/onode-staged-tree: add missing type in Cache::alloc_new_extent_by_type() X-Git-Tag: v17.1.0~2874^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39655%2Fhead;p=ceph.git crimson/onode-staged-tree: add missing type in Cache::alloc_new_extent_by_type() Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index b88e6480c6e5..2b42322a3633 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -143,6 +143,8 @@ CachedExtentRef Cache::alloc_new_extent_by_type( return alloc_new_extent(t, length); case extent_types_t::ONODE_BLOCK: return alloc_new_extent(t, length); + case extent_types_t::ONODE_BLOCK_STAGED: + return alloc_new_extent(t, length); case extent_types_t::EXTMAP_INNER: return alloc_new_extent(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 Cache::get_extent_by_type( extent_types_t type, paddr_t offset, @@ -553,7 +553,7 @@ Cache::get_extent_ertr::future Cache::get_extent_by_type( return CachedExtentRef(extent.detach(), false /* add_ref */); }); case extent_types_t::ONODE_BLOCK_STAGED: - return get_extent(offset, length + return get_extent(offset, length ).safe_then([](auto extent) { return CachedExtentRef(extent.detach(), false /* add_ref */); });