]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: rename retire_extent_addr for addr overload
authorSamuel Just <sjust@redhat.com>
Thu, 3 Jun 2021 21:51:43 +0000 (14:51 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 23 Jun 2021 18:23:34 +0000 (18:23 +0000)
Makes InterruptibleCache bit in the later patch simpler, and is somewhat
clearer.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cache.h
src/crimson/os/seastore/transaction_manager.cc

index 0793c7deb2963b88617e69a5629fbcd9ad538dff..2dc005628150a94ff64a8178cc7f9acaf74b4434 100644 (file)
@@ -27,7 +27,7 @@ Cache::~Cache()
   ceph_assert(extents.empty());
 }
 
-Cache::retire_extent_ret Cache::retire_extent(
+Cache::retire_extent_ret Cache::retire_extent_addr(
   Transaction &t, paddr_t addr, extent_len_t length)
 {
   LOG_PREFIX(Cache::retire_extent);
index 0f3e260f3c143e64884049f230cf2eac3fdb7af9..57173ab94727eb4b4a648dc0b20066203aa0fd04 100644 (file)
@@ -139,7 +139,7 @@ public:
   /// Declare paddr retired in t
   using retire_extent_ertr = base_ertr;
   using retire_extent_ret = retire_extent_ertr::future<>;
-  retire_extent_ret retire_extent(
+  retire_extent_ret retire_extent_addr(
     Transaction &t, paddr_t addr, extent_len_t length);
 
   /**
index 105d3f040928f4799a09a1595240268f6dd1d8be..af5a8804c76fc06b8b52296cbf5d37f75024132e 100644 (file)
@@ -173,7 +173,7 @@ TransactionManager::ref_ret TransactionManager::dec_ref(
   ).safe_then([this, FNAME, offset, &t](auto result) -> ref_ret {
     if (result.refcount == 0 && !result.addr.is_zero()) {
       DEBUGT("offset {} refcount 0", t, offset);
-      return cache->retire_extent(
+      return cache->retire_extent_addr(
        t, result.addr, result.length
       ).safe_then([result, this] {
        stats.extents_retired_total++;