From a98dbfa96311b2ce8a6a44e9a57e700ea7843b00 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Wed, 24 Feb 2021 13:48:07 +0800 Subject: [PATCH] crimson/onode-staged-tree: add missing type in Cache::alloc_new_extent_by_type() Signed-off-by: Yingxin Cheng --- src/crimson/os/seastore/cache.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */); }); -- 2.47.3