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