/* The helpers below calculate the offset of a given record, key or pointer into a btree block (xfs_btree_*_offset) or return a pointer to the given record, key or pointer (xfs_btree_*_addr). Note that all addressing inside the btree block is done using indices starting at one, not zero! Return size of the btree block header for this btree instance.  */
static size_t xfs_btree_block_len(struct xfs_btree_cur *cur)
/* The helpers below calculate the offset of a given record, key or pointer into a btree block (xfs_btree_*_offset) or return a pointer to the given record, key or pointer (xfs_btree_*_addr). Note that all addressing inside the btree block is done using indices starting at one, not zero! Return size of the btree block header for this btree instance.  */
static size_t xfs_btree_block_len(struct xfs_btree_cur *cur)
{
	return (cur->bc_flags & XFS_BTREE_LONG_PTRS) ?
		XFS_BTREE_LBLOCK_LEN :
		XFS_BTREE_SBLOCK_LEN;
}