]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #42731 from liu-chunmei/seastore-alloc-extent-hint
authorLiu-Chunmei <chunmei.liu@intel.com>
Tue, 17 Aug 2021 00:15:22 +0000 (17:15 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 00:15:22 +0000 (17:15 -0700)
crimson/seastore alloc extent hint

Replace L_ADDR_MIN by obj hash in onode, omap, object_data when alloc_extent.

Reviewed-by: Sam Just <sjust@redhat.com> and Cheng, Yingxin <yingxin.cheng@intel.com>
1  2 
src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_accessor.h
src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h

index 0aabf4ae1433e44848d11a5cd6c6f226eebb5131,3ff51d0542e3be8f2488a4e2140a7ba35b40c556..ccfd1721b9293c9b42989673fbec0766334a5287
@@@ -128,11 -127,10 +128,11 @@@ class SeastoreNodeExtentManager final: 
        if (trigger_eagain()) {
          DEBUGT("allocating {}B: trigger eagain", t, len);
          t.test_set_conflict();
 -        return alloc_iertr::make_ready_future<NodeExtentRef>();
 +        // FIXME: interruptive-future failed to check invalidation
 +        // return alloc_iertr::make_ready_future<NodeExtentRef>();
        }
      }
-     return tm.alloc_extent<SeastoreNodeExtent>(t, addr_min, len
+     return tm.alloc_extent<SeastoreNodeExtent>(t, hint, len
      ).si_then([len, &t](auto extent) {
        DEBUGT("allocated {}B at {:#x} -- {}",
               t, extent->get_length(), extent->get_laddr(), *extent);