/* Shift block pointers one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_ptrs(struct xfs_btree_cur *cur, union xfs_btree_ptr *ptr, int dir, int numptrs)
/* Shift block pointers one index left/right inside a single btree block.  */
STATIC void xfs_btree_shift_ptrs(struct xfs_btree_cur *cur, union xfs_btree_ptr *ptr, int dir, int numptrs)
{
	char			*dst_ptr;
	ASSERT(numptrs >= 0);
	ASSERT(dir == 1 || dir == -1);
	dst_ptr = (char *)ptr + (dir * xfs_btree_ptr_len(cur));
	memmove(dst_ptr, ptr, numptrs * xfs_btree_ptr_len(cur));
}