/* Shift keys one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_keys(struct xfs_btree_cur *cur, union xfs_btree_key *key, int dir, int numkeys)
/* Shift keys one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_keys(struct xfs_btree_cur *cur, union xfs_btree_key *key, int dir, int numkeys)
{
	char			*dst_key;
	ASSERT(numkeys >= 0);
	ASSERT(dir == 1 || dir == -1);
	dst_key = (char *)key + (dir * cur->bc_ops->key_len);
	memmove(dst_key, key, numkeys * cur->bc_ops->key_len);
}