/* Shift records one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_recs(struct xfs_btree_cur *cur, union xfs_btree_rec *rec, int dir, int numrecs)
/* Shift records one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_recs(struct xfs_btree_cur *cur, union xfs_btree_rec *rec, int dir, int numrecs)
{
	char			*dst_rec;
	ASSERT(numrecs >= 0);
	ASSERT(dir == 1 || dir == -1);
	dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len);
	memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len);
}