From: Yingxin Cheng Date: Sat, 18 Sep 2021 07:10:38 +0000 (+0800) Subject: crimson/os/seastore: add missing hints in omap tree X-Git-Tag: v17.1.0~829^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=30f22ecb0215a71627e54a0693712c64b1515ee5;p=ceph.git crimson/os/seastore: add missing hints in omap tree Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc b/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc index 46b5a46fceeeb..dc1294dc371a1 100644 --- a/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc +++ b/src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc @@ -267,7 +267,7 @@ OMapInnerNode::split_children_ret OMapInnerNode:: make_split_children(omap_context_t oc) { logger().debug("OMapInnerNode: {}", __func__); - return oc.tm.alloc_extents(oc.t, L_ADDR_MIN, OMAP_BLOCK_SIZE, 2) + return oc.tm.alloc_extents(oc.t, oc.hint, OMAP_BLOCK_SIZE, 2) .si_then([this] (auto &&ext_pair) { auto left = ext_pair.front(); auto right = ext_pair.back(); @@ -295,7 +295,7 @@ OMapInnerNode::make_balanced(omap_context_t oc, OMapNodeRef _right) { logger().debug("OMapInnerNode: {}", __func__); ceph_assert(_right->get_type() == TYPE); - return oc.tm.alloc_extents(oc.t, L_ADDR_MIN, OMAP_BLOCK_SIZE, 2) + return oc.tm.alloc_extents(oc.t, oc.hint, OMAP_BLOCK_SIZE, 2) .si_then([this, _right] (auto &&replacement_pair){ auto replacement_left = replacement_pair.front(); auto replacement_right = replacement_pair.back(); @@ -556,7 +556,7 @@ OMapLeafNode::split_children_ret OMapLeafNode::make_split_children(omap_context_t oc) { logger().debug("OMapLeafNode: {}", __func__); - return oc.tm.alloc_extents(oc.t, L_ADDR_MIN, OMAP_BLOCK_SIZE, 2) + return oc.tm.alloc_extents(oc.t, oc.hint, OMAP_BLOCK_SIZE, 2) .si_then([this] (auto &&ext_pair) { auto left = ext_pair.front(); auto right = ext_pair.back(); @@ -585,7 +585,7 @@ OMapLeafNode::make_balanced(omap_context_t oc, OMapNodeRef _right) { ceph_assert(_right->get_type() == TYPE); logger().debug("OMapLeafNode: {}", __func__); - return oc.tm.alloc_extents(oc.t, L_ADDR_MIN, OMAP_BLOCK_SIZE, 2) + return oc.tm.alloc_extents(oc.t, oc.hint, OMAP_BLOCK_SIZE, 2) .si_then([this, _right] (auto &&replacement_pair) { auto replacement_left = replacement_pair.front(); auto replacement_right = replacement_pair.back();