]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
fixup! crimson/os/seastore/lba: set extent type for ZERO lba mappings
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 22 May 2026 10:17:15 +0000 (18:17 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Sun, 24 May 2026 09:40:13 +0000 (17:40 +0800)
src/crimson/os/seastore/lba/btree_lba_manager.cc

index ee4f5e719d5c0743ec150cd9b6d2d893ea8c2d4e..3696823088f68d202e0f9ecf7ce41b407309e8e0 100644 (file)
@@ -1194,6 +1194,7 @@ BtreeLBAManager::remap_mappings(
   assert(orig_indirect ||
         (orig_val.pladdr.is_paddr() &&
          orig_val.pladdr.get_paddr().is_absolute()));
+  auto type = cursor->get_extent_type();
   cursor = co_await update_mapping_refcount(
     c.trans, cursor, -1);
   iter = btree.make_partial_iter(c, *cursor);
@@ -1218,7 +1219,7 @@ BtreeLBAManager::remap_mappings(
     val.refcount = EXTENT_DEFAULT_REF_COUNT;
     // Checksum will be updated when the committing the transaction
     val.checksum = CRC_NULL;
-    val.type = cursor->get_extent_type();
+    val.type = type;
     // committing the transaction
     auto p = co_await btree.insert(
       c, iter, new_key, std::move(val),