]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: drop duplicated calls to touch_extent()
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 1 Aug 2024 08:44:48 +0000 (16:44 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 14 Aug 2024 07:44:46 +0000 (15:44 +0800)
The extent is already PRESENT, which means it was already touched in
this transaction.

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

index 6528854e0724cc3a79b511cade18fd378ab03d7c..0807e83d371e30bb76053a8e555670cc1ea1d3de 100644 (file)
@@ -371,7 +371,6 @@ public:
         });
       } else {
        assert(!ret->is_mutable());
-       touch_extent(*ret);
         SUBDEBUGT(seastore_cache, "{} {}~{} is present on t without been \
           fully loaded, reading ... {}", t, T::TYPE, offset, length, *ret);
         auto bp = alloc_cache_buf(ret->get_length());
@@ -712,7 +711,6 @@ private:
         });
       } else {
        assert(!ret->is_mutable());
-       touch_extent(*ret);
         SUBDEBUGT(seastore_cache, "{} {}~{} {} is present on t without been \
                   fully loaded, reading ...", t, type, offset, length, laddr);
         auto bp = alloc_cache_buf(ret->get_length());