]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba_manager: correct btree node sizes 46616/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Fri, 10 Jun 2022 07:41:50 +0000 (15:41 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Fri, 10 Jun 2022 07:41:50 +0000 (15:41 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h

index 09a9a53f3e8c306d4a8968e733a2cbb88bc5907b..004a5778001c84f7e01780ea9e3b90b3a752e369 100644 (file)
@@ -77,7 +77,7 @@ using lba_node_meta_le_t = fixed_kv_node_meta_le_t<laddr_le_t>;
  * TODO: make the above capacity calculation part of FixedKVNodeLayout
  * TODO: the above alignment probably isn't portable without further work
  */
-constexpr size_t INTERNAL_NODE_CAPACITY = 32;
+constexpr size_t INTERNAL_NODE_CAPACITY = 254;
 struct LBAInternalNode
   : FixedKVInternalNode<
       INTERNAL_NODE_CAPACITY,
@@ -115,7 +115,7 @@ using LBAInternalNodeRef = LBAInternalNode::Ref;
  * TODO: update FixedKVNodeLayout to handle the above calculation
  * TODO: the above alignment probably isn't portable without further work
  */
-constexpr size_t LEAF_NODE_CAPACITY = 32;
+constexpr size_t LEAF_NODE_CAPACITY = 145;
 
 /**
  * lba_map_val_le_t