]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #54098 from Matan-B/wip-53455-reef
authorMatan Breizman <mbreizma@redhat.com>
Sun, 22 Oct 2023 08:32:39 +0000 (11:32 +0300)
committerGitHub <noreply@github.com>
Sun, 22 Oct 2023 08:32:39 +0000 (11:32 +0300)
reef: crimson/os/seastore/cache: don't add EXIST_CLEAN extents to lru

Reviewed-by: Samuel Just <sjust@redhat.com>
1  2 
src/crimson/os/seastore/cache.h
src/crimson/os/seastore/cached_extent.h

index 1820d758a0ba75f019cd17512537a4e7a456ed2e,18487b55652c58e349e48e9038b3d927adff4f1a..c79473f98ba28993fcc6bcddf06c168fde449f7b
@@@ -467,9 -467,10 +467,10 @@@ public
              ret->cast<T>());
          });
        } else {
-         touch_extent(*ret);
+       assert(!ret->is_mutable());
+       touch_extent(*ret);
          SUBDEBUGT(seastore_cache, "{} {}~{} is present on t without been \
 -          fully loaded, reading ...", t, T::TYPE, offset, length);
 +          fully loaded, reading ... {}", t, T::TYPE, offset, length, *ret);
          auto bp = alloc_cache_buf(ret->get_length());
          ret->set_bptr(std::move(bp));
          return read_extent<T>(