/* Calculate offset of the n-th record in a btree block.  */
STATIC size_t xfs_btree_rec_offset(struct xfs_btree_cur *cur, int n)
/* Calculate offset of the n-th record in a btree block.  */
STATIC size_t xfs_btree_rec_offset(struct xfs_btree_cur *cur, int n)
{
	return xfs_btree_block_len(cur) +
		(n - 1) * cur->bc_ops->rec_len;
}