LOG_PREFIX(BtreeBackrefManager::get_mapping);
TRACET("{}", t, offset);
auto c = get_context(t);
- return with_btree_ret<BackrefBtree, BackrefMapping>(
+ return with_btree<BackrefBtree>(
cache,
c,
[c, offset](auto &btree) {
paddr_t addr)
{
auto c = get_context(t);
- return with_btree_ret<BackrefBtree, remove_mapping_result_t>(
+ return with_btree<BackrefBtree>(
cache,
c,
[c, addr](auto &btree) mutable {
ent.key);
auto c = get_context(t);
- return with_btree_ret<BackrefBtree, CachedExtentRef>(
+ return with_btree<BackrefBtree>(
cache,
c,
[c, &ent](auto &btree) {
cache, c, State{}, std::forward<F>(f));
}
-template <
- typename tree_type_t,
- typename Ret,
- typename F>
-auto with_btree_ret(
- Cache &cache,
- op_context_t c,
- F &&f) {
- return with_btree_state<tree_type_t, Ret>(
- cache,
- c,
- [f=std::forward<F>(f)](auto &btree, auto &ret) mutable {
- return f(
- btree
- ).si_then([&ret](auto &&_ret) {
- ret = std::move(_ret);
- });
- });
}
-
-}
-
t, type, laddr, addr, len);
ceph_assert(is_lba_node(type));
auto c = get_context(t);
- return with_btree_ret<LBABtree, CachedExtentRef>(
+ return with_btree<LBABtree>(
cache,
c,
[c, type, addr, laddr, len](auto &btree) {