]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/lba_manager: drop unused get_mappings()
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 19 Mar 2025 02:14:26 +0000 (10:14 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 21 Mar 2025 03:19:28 +0000 (11:19 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/lba_manager.h
src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc
src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h

index 26a59f82e92bdb18827269ac1c2e524caef68b04..a4da86f111b5f25ca600acc126470a6dacb3eb1f 100644 (file)
@@ -50,17 +50,6 @@ public:
     Transaction &t,
     laddr_t offset, extent_len_t length) = 0;
 
-  /**
-   * Fetches mappings for a list of laddr_t in range [offset, offset + len)
-   *
-   * Future will not resolve until all pins have resolved (set_paddr called)
-   * For indirect lba mappings, get_mappings will always retrieve the original
-   * lba value.
-   */
-  virtual get_mappings_ret get_mappings(
-    Transaction &t,
-    laddr_list_t &&extent_lisk) = 0;
-
   /**
    * Fetches the mapping for laddr_t
    *
index 68008c8b04ee4da1bfa4bdf11ad42d4a335620ea..5f4816e6cc46829c0cfd4bca2c46a74091d8f6bb 100644 (file)
@@ -242,31 +242,6 @@ BtreeLBAManager::_get_original_mappings(
   });
 }
 
-
-BtreeLBAManager::get_mappings_ret
-BtreeLBAManager::get_mappings(
-  Transaction &t,
-  laddr_list_t &&list)
-{
-  LOG_PREFIX(BtreeLBAManager::get_mappings);
-  TRACET("{}", t, list);
-  auto l = std::make_unique<laddr_list_t>(std::move(list));
-  auto retptr = std::make_unique<lba_pin_list_t>();
-  auto &ret = *retptr;
-  return trans_intr::do_for_each(
-    l->begin(),
-    l->end(),
-    [this, &t, &ret](const auto &p) {
-      return this->get_mappings(t, p.first, p.second).si_then(
-       [&ret](auto res) {
-         ret.splice(ret.end(), res, res.begin(), res.end());
-         return get_mappings_iertr::now();
-       });
-    }).si_then([l=std::move(l), retptr=std::move(retptr)]() mutable {
-      return std::move(*retptr);
-    });
-}
-
 BtreeLBAManager::get_mapping_ret
 BtreeLBAManager::get_mapping(
   Transaction &t,
index cdc62a5de33cf8b53cad8a21cc3cb4671d31c601..39cd0d995dbcefcbd21df926f017d3729b104e96 100644 (file)
@@ -269,15 +269,10 @@ public:
     Transaction &t,
     laddr_t offset, extent_len_t length) final;
 
-  get_mappings_ret get_mappings(
-    Transaction &t,
-    laddr_list_t &&list) final;
-
   get_mapping_ret get_mapping(
     Transaction &t,
     laddr_t offset) final;
 
-
   struct alloc_mapping_info_t {
     laddr_t key = L_ADDR_NULL; // once assigned, the allocation to
                               // key must be exact and successful