]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: mark extent invalid after removal
authorSamuel Just <sjust@redhat.com>
Mon, 11 Jan 2021 23:00:05 +0000 (15:00 -0800)
committerSamuel Just <sjust@redhat.com>
Tue, 19 Jan 2021 20:55:42 +0000 (20:55 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cache.cc

index 76f5008485efbf15ce87104bc3a7a9552aa12783..46227028ef8a3ba4de04104cebd06c0949247beb 100644 (file)
@@ -115,6 +115,8 @@ void Cache::replace_extent(CachedExtentRef next, CachedExtentRef prev)
   } else {
     add_to_dirty(next);
   }
+
+  prev->state = CachedExtent::extent_state_t::INVALID;
 }
 
 CachedExtentRef Cache::alloc_new_extent_by_type(