@@ -402,8 +402,7 @@ xfbtree_init_leaf_block(
trace_xfbtree_create_root_buf(xfbt, bp);
bp->b_ops = cfg->btree_ops->buf_ops;
- xfs_btree_init_block(mp, bp->b_addr, cfg->btree_ops, daddr, 0, 0,
- cfg->owner);
+ xfs_btree_init_buf(mp, bp, cfg->btree_ops, 0, 0, cfg->owner);
error = xfs_bwrite(bp);
xfs_buf_relse(bp);
if (error)
@@ -684,8 +684,7 @@ xfs_bmap_extents_to_btree(
*/
abp->b_ops = &xfs_bmbt_buf_ops;
ablock = XFS_BUF_TO_BLOCK(abp);
- xfs_btree_init_block(mp, ablock, &xfs_bmbt_ops, xfs_buf_daddr(abp),
- 0, 0, ip->i_ino);
+ xfs_btree_init_buf(mp, abp, &xfs_bmbt_ops, 0, 0, ip->i_ino);
for_each_xfs_iext(ifp, &icur, &rec) {
if (isnullstartblock(rec.br_startblock))
@@ -1286,8 +1286,7 @@ xfs_btree_init_block_cur(
else
owner = cur->bc_ag.pag->pag_agno;
- xfs_btree_init_block(cur->bc_mp, XFS_BUF_TO_BLOCK(bp), cur->bc_ops,
- xfs_buf_daddr(bp), level, numrecs, owner);
+ xfs_btree_init_buf(cur->bc_mp, bp, cur->bc_ops, level, numrecs, owner);
}
/*