]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #56028 from cyx1231st/wip-seastore-cleanup-lba
authorYingxin <yingxin.cheng@intel.com>
Wed, 13 Mar 2024 02:27:51 +0000 (10:27 +0800)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 02:27:51 +0000 (10:27 +0800)
crimson/os/seastore: cleanups around lba parent-child pointer

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
1  2 
src/crimson/os/seastore/transaction_manager.h

index 8b89387c7ddd14d7662c2e0d762eb44b9fd8b527,f11967fd6042228d3d452be71a7ec065f553f4e2..e4b4707b249c44e5c173ac45ba30b162e985f700
@@@ -430,10 -431,15 +431,14 @@@ public
        last_offset = remap_offset;
        last_len = remap_len;
      }
-     ceph_assert(total_remap_len < original_len);
+     if (remaps.size() == 1) {
+       assert(total_remap_len < original_len);
+     } else {
+       assert(total_remap_len <= original_len);
+     }
  #endif
  
 -    // FIXME: paddr can be absolute and pending
 -    ceph_assert(pin->get_val().is_absolute());
 +    // The according extent might be stable or pending.
      return cache->get_extent_if_cached(
        t, pin->get_val(), T::TYPE
      ).si_then([this, &t, remaps,