From dba31242e73c2b5830006c4c4f8bcd7ef1247922 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Thu, 1 Aug 2024 16:44:48 +0800 Subject: [PATCH] crimson/os/seastore: drop duplicated calls to touch_extent() The extent is already PRESENT, which means it was already touched in this transaction. Signed-off-by: Yingxin Cheng --- src/crimson/os/seastore/cache.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 6528854e0724c..0807e83d371e3 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -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()); -- 2.39.5