Lines Matching refs:tcur
2174 struct xfs_btree_cur *tcur; /* temporary btree cursor */ in xfs_btree_rshift() local
2299 error = xfs_btree_dup_cursor(cur, &tcur); in xfs_btree_rshift()
2302 i = xfs_btree_lastrec(tcur, level); in xfs_btree_rshift()
2305 error = xfs_btree_increment(tcur, level, &i); in xfs_btree_rshift()
2309 error = xfs_btree_updkey(tcur, rkp, level + 1); in xfs_btree_rshift()
2313 xfs_btree_del_cursor(tcur, XFS_BTREE_NOERROR); in xfs_btree_rshift()
2329 XFS_BTREE_TRACE_CURSOR(tcur, XBT_ERROR); in xfs_btree_rshift()
2330 xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR); in xfs_btree_rshift()
3386 struct xfs_btree_cur *tcur; /* temporary btree cursor */ in xfs_btree_delrec() local
3392 tcur = NULL; in xfs_btree_delrec()
3586 error = xfs_btree_dup_cursor(cur, &tcur); in xfs_btree_delrec()
3599 i = xfs_btree_lastrec(tcur, level); in xfs_btree_delrec()
3602 error = xfs_btree_increment(tcur, level, &i); in xfs_btree_delrec()
3607 i = xfs_btree_lastrec(tcur, level); in xfs_btree_delrec()
3611 right = xfs_btree_get_block(tcur, level, &rbp); in xfs_btree_delrec()
3613 error = xfs_btree_check_block(tcur, right, level, rbp); in xfs_btree_delrec()
3618 xfs_btree_get_sibling(tcur, right, &cptr, XFS_BB_LEFTSIB); in xfs_btree_delrec()
3626 cur->bc_ops->get_minrecs(tcur, level)) { in xfs_btree_delrec()
3627 error = xfs_btree_lshift(tcur, level, &i); in xfs_btree_delrec()
3632 cur->bc_ops->get_minrecs(tcur, level)); in xfs_btree_delrec()
3634 xfs_btree_del_cursor(tcur, XFS_BTREE_NOERROR); in xfs_btree_delrec()
3635 tcur = NULL; in xfs_btree_delrec()
3651 i = xfs_btree_firstrec(tcur, level); in xfs_btree_delrec()
3654 error = xfs_btree_decrement(tcur, level, &i); in xfs_btree_delrec()
3670 i = xfs_btree_firstrec(tcur, level); in xfs_btree_delrec()
3673 error = xfs_btree_decrement(tcur, level, &i); in xfs_btree_delrec()
3676 i = xfs_btree_firstrec(tcur, level); in xfs_btree_delrec()
3680 left = xfs_btree_get_block(tcur, level, &lbp); in xfs_btree_delrec()
3687 xfs_btree_get_sibling(tcur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec()
3695 cur->bc_ops->get_minrecs(tcur, level)) { in xfs_btree_delrec()
3696 error = xfs_btree_rshift(tcur, level, &i); in xfs_btree_delrec()
3701 cur->bc_ops->get_minrecs(tcur, level)); in xfs_btree_delrec()
3702 xfs_btree_del_cursor(tcur, XFS_BTREE_NOERROR); in xfs_btree_delrec()
3703 tcur = NULL; in xfs_btree_delrec()
3720 xfs_btree_del_cursor(tcur, XFS_BTREE_NOERROR); in xfs_btree_delrec()
3721 tcur = NULL; in xfs_btree_delrec()
3874 if (tcur) in xfs_btree_delrec()
3875 xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR); in xfs_btree_delrec()