/* For now this btree implementation assumes the btree root is always stored in the if_broot field of an inode fork.  */
STATIC struct xfs_btree_block* xfs_btree_get_iroot(struct xfs_btree_cur *cur)
/* For now this btree implementation assumes the btree root is always stored in the if_broot field of an inode fork.  */
STATIC struct xfs_btree_block* xfs_btree_get_iroot(struct xfs_btree_cur *cur)
{
       struct xfs_ifork        *ifp;
       ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork);
       return (struct xfs_btree_block *)ifp->if_broot;
}