]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: do not assign gen/hint when split a clean extent 47140/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 18 Jul 2022 03:29:46 +0000 (11:29 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 18 Jul 2022 06:15:18 +0000 (14:15 +0800)
Gen/hint is only required when need to write the extent to disk.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/transaction_manager.h

index 295ba8f35cafa2b61fc6a25b78987c4bdc6e470c..1062adfd9370fb2fa10d9b0550b32d92d5acfe5c 100644 (file)
@@ -381,9 +381,7 @@ public:
     Transaction &t,
     laddr_t laddr_hint,
     paddr_t existing_paddr,
-    extent_len_t length,
-    placement_hint_t placement_hint = placement_hint_t::HOT,
-    reclaim_gen_t gen = DIRTY_GENERATION) {
+    extent_len_t length) {
     LOG_PREFIX(TransactionManager::map_existing_extent);
     ceph_assert(existing_paddr.is_absolute());
     assert(t.is_retired(existing_paddr, length));
@@ -397,8 +395,8 @@ public:
 
     ext->init(CachedExtent::extent_state_t::EXIST_CLEAN,
              existing_paddr,
-             placement_hint,
-             gen);
+             PLACEMENT_HINT_NULL,
+             NULL_GENERATION);
 
     t.add_fresh_extent(ext);