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: v18.1.0~34^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=10aac777872488e51ec7feeefa855da06b36c33d;p=ceph.git crimson/os/seastore/cached_extent: improve the representation of "has_been_invalidated" Signed-off-by: Xuehan Xu (cherry picked from commit 1b4c591ef51920211de978f490b4125177571e08) --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index ea1a749b7f23..70ebc394bd58 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