From: Yingxin Cheng Date: Tue, 15 Mar 2022 01:25:36 +0000 (+0800) Subject: crimson/os/seastore/cache: assign the missing allocation hint X-Git-Tag: v18.0.0~1193^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0301c79672cae3e9a1808a07e73e51b173cebdc8;p=ceph.git crimson/os/seastore/cache: assign the missing allocation hint Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 57803a27085a..cc9c53d783ca 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={} -- {}",