]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cached_extent: improve the representation of "has_been_invalidated"
authorXuehan Xu <xxhdx1985126@gmail.com>
Wed, 12 Oct 2022 06:37:39 +0000 (14:37 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 23 May 2023 13:24:44 +0000 (13:24 +0000)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
(cherry picked from commit 1b4c591ef51920211de978f490b4125177571e08)

src/crimson/os/seastore/cached_extent.h

index ea1a749b7f23a50a6bfe436e96610070050e3213..70ebc394bd5849965c57cdb2aa5f39e9cc95a296 100644 (file)
@@ -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