From: Xuehan Xu Date: Fri, 22 May 2026 10:17:15 +0000 (+0800) Subject: fixup! crimson/os/seastore/lba: set extent type for ZERO lba mappings X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebdedb9e183e6856b301385fdec7fbcb5b8968a2;p=ceph-ci.git fixup! crimson/os/seastore/lba: set extent type for ZERO lba mappings --- diff --git a/src/crimson/os/seastore/lba/btree_lba_manager.cc b/src/crimson/os/seastore/lba/btree_lba_manager.cc index ee4f5e719d5..3696823088f 100644 --- a/src/crimson/os/seastore/lba/btree_lba_manager.cc +++ b/src/crimson/os/seastore/lba/btree_lba_manager.cc @@ -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),