From 0301c79672cae3e9a1808a07e73e51b173cebdc8 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Tue, 15 Mar 2022 09:25:36 +0800 Subject: [PATCH] crimson/os/seastore/cache: assign the missing allocation hint Signed-off-by: Yingxin Cheng --- src/crimson/os/seastore/cache.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 57803a27085..cc9c53d783c 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -501,6 +501,7 @@ public: auto result = epm.alloc_new_extent(t, T::TYPE, length, hint); auto ret = CachedExtent::make_cached_extent_ref(std::move(result.bp)); ret->set_paddr(result.paddr); + ret->hint = hint; t.add_fresh_extent(ret); ret->state = CachedExtent::extent_state_t::INITIAL_WRITE_PENDING; SUBDEBUGT(seastore_cache, "allocated {} {}B extent at {}, hint={} -- {}", -- 2.39.5