]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: assign the missing allocation hint
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 15 Mar 2022 01:25:36 +0000 (09:25 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 18 Mar 2022 06:13:46 +0000 (14:13 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.h

index 57803a27085a2b1bfaefb304a7db2ee9ee465448..cc9c53d783ca729c33c2d74eb3beb917ffc875b5 100644 (file)
@@ -501,6 +501,7 @@ public:
     auto result = epm.alloc_new_extent(t, T::TYPE, length, hint);
     auto ret = CachedExtent::make_cached_extent_ref<T>(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={} -- {}",