From: Xuehan Xu Date: Wed, 12 Oct 2022 06:37:39 +0000 (+0800) Subject: crimson/os/seastore/cached_extent: improve the representation of "has_been_invalidated" X-Git-Tag: v19.0.0~1260^2~14 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1b4c591ef51920211de978f490b4125177571e08;p=ceph-ci.git crimson/os/seastore/cached_extent: improve the representation of "has_been_invalidated" Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index ea1a749b7f2..70ebc394bd5 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -402,7 +402,7 @@ public: /// Returns true if extent or prior_instance has been invalidated bool has_been_invalidated() const { - return !is_valid() || (prior_instance && !prior_instance->is_valid()); + return !is_valid() || (is_mutation_pending() && !prior_instance->is_valid()); } /// Returns true if extent is a plcaeholder