From: Samuel Just Date: Mon, 11 Jan 2021 23:00:05 +0000 (-0800) Subject: crimson/os/seastore/cache: mark extent invalid after removal X-Git-Tag: v17.1.0~3095^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=412c6f33df6ed26c30c35f1f19d9420b4ba52c14;p=ceph.git crimson/os/seastore/cache: mark extent invalid after removal Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 76f5008485e..46227028ef8 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -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(