lba_node_meta_t meta{0, L_ADDR_MAX, 1};
root_leaf->set_meta(meta);
root_leaf->pin.set_range(meta);
- croot->get_lba_root() =
+ croot->get_root() =
root_t{
1,
0,
return cache.get_root(t).safe_then([this, &t](auto croot) {
logger().debug(
"BtreeLBAManager::get_root: reading root at {} depth {}",
- paddr_t{croot->get_lba_root().lba_root_addr},
- unsigned(croot->get_lba_root().lba_depth));
+ paddr_t{croot->get_root().lba_root_addr},
+ unsigned(croot->get_root().lba_depth));
return get_lba_btree_extent(
get_context(t),
- croot->get_lba_root().lba_depth,
- croot->get_lba_root().lba_root_addr,
+ croot->get_root().lba_depth,
+ croot->get_root().lba_root_addr,
paddr_t());
});
}
L_ADDR_MIN,
root->get_paddr(),
nullptr);
- croot->get_lba_root().lba_root_addr = nroot->get_paddr();
- croot->get_lba_root().lba_depth = root->get_node_meta().depth + 1;
+ croot->get_root().lba_root_addr = nroot->get_paddr();
+ croot->get_root().lba_depth = root->get_node_meta().depth + 1;
return nroot->split_entry(
get_context(t),
laddr, nroot->begin(), root);
paddr_t paddr)
{
return cache.get_root(t).safe_then([=, &t](RootBlockRef croot) {
- if (depth == croot->get_lba_root().lba_depth) {
+ if (depth == croot->get_root().lba_depth) {
logger().debug(
"update_internal_mapping: updating lba root to: {}->{}",
laddr,
croot = mut_croot->cast<RootBlock>();
}
ceph_assert(laddr == 0);
- auto old_paddr = croot->get_lba_root().lba_root_addr;
- croot->get_lba_root().lba_root_addr = paddr;
+ auto old_paddr = croot->get_root().lba_root_addr;
+ croot->get_root().lba_root_addr = paddr;
return update_internal_mapping_ret(
update_internal_mapping_ertr::ready_future_marker{},
old_paddr);
paddr);
return get_lba_btree_extent(
get_context(t),
- croot->get_lba_root().lba_depth,
- croot->get_lba_root().lba_root_addr,
+ croot->get_root().lba_depth,
+ croot->get_root().lba_root_addr,
paddr_t()).safe_then([=, &t](LBANodeRef broot) {
return broot->mutate_internal_address(
get_context(t),