auto &ftvalue = static_cast<FLTreeOnode&>(value);
ftvalue.update_onode_size(t, size);
auto oroot = omap_root_t(laddr_t::from_raw_uint(id), cnt_modify,
- value.get_metadata_hint(block_size));
+ value.get_metadata_hint(block_size), omap_type_t::OMAP);
ftvalue.update_omap_root(t, oroot);
validate(value);
}
});
}
+ void update_log_root(Transaction &t, omap_root_t &lroot) final {
+ with_mutable_layout(t, [&lroot](onode_layout_t &mlayout) {
+ mlayout.log_root.update(lroot);
+ });
+ }
+
void update_xattr_root(Transaction &t, omap_root_t &xroot) final {
with_mutable_layout(t, [&xroot](onode_layout_t &mlayout) {
mlayout.xattr_root.update(xroot);
omap_root_t omap_root = with_trans_intr(
*t,
[this](auto &t) {
- return omap_manager->initialize_omap(t, L_ADDR_MIN);
+ return omap_manager->initialize_omap(t, L_ADDR_MIN,
+ omap_type_t::OMAP);
}).unsafe_get();
submit_transaction(std::move(t));
return omap_root;