Lines Matching refs:rrecs

2328 	int			rrecs;		/* right record count */  in xfs_btree_lshift()  local
2371 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_lshift()
2379 rrecs--; in xfs_btree_lshift()
2428 xfs_btree_set_numrecs(right, rrecs); in xfs_btree_lshift()
2434 XFS_BTREE_STATS_ADD(cur, moves, rrecs - 1); in xfs_btree_lshift()
2437 for (i = 0; i < rrecs; i++) { in xfs_btree_lshift()
2445 -1, rrecs); in xfs_btree_lshift()
2448 -1, rrecs); in xfs_btree_lshift()
2450 xfs_btree_log_keys(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2451 xfs_btree_log_ptrs(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2456 -1, rrecs); in xfs_btree_lshift()
2457 xfs_btree_log_recs(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2526 int rrecs; /* right record count */ in xfs_btree_rshift() local
2563 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_rshift()
2564 if (rrecs == cur->bc_ops->get_maxrecs(cur, level)) in xfs_btree_rshift()
2568 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in xfs_btree_rshift()
2585 for (i = rrecs - 1; i >= 0; i--) { in xfs_btree_rshift()
2591 xfs_btree_shift_keys(cur, rkp, 1, rrecs); in xfs_btree_rshift()
2592 xfs_btree_shift_ptrs(cur, rpp, 1, rrecs); in xfs_btree_rshift()
2602 xfs_btree_log_keys(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2603 xfs_btree_log_ptrs(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2615 xfs_btree_shift_recs(cur, rrp, 1, rrecs); in xfs_btree_rshift()
2619 xfs_btree_log_recs(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2628 xfs_btree_set_numrecs(right, ++rrecs); in xfs_btree_rshift()
2701 int rrecs; in __xfs_btree_split() local
2741 rrecs = lrecs / 2; in __xfs_btree_split()
2742 if ((lrecs & 1) && cur->bc_levels[level].ptr <= rrecs + 1) in __xfs_btree_split()
2743 rrecs++; in __xfs_btree_split()
2744 src_index = (lrecs - rrecs + 1); in __xfs_btree_split()
2746 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in __xfs_btree_split()
2749 lrecs -= rrecs; in __xfs_btree_split()
2751 xfs_btree_set_numrecs(right, xfs_btree_get_numrecs(right) + rrecs); in __xfs_btree_split()
2770 for (i = src_index; i < rrecs; i++) { in __xfs_btree_split()
2777 xfs_btree_copy_keys(cur, rkp, lkp, rrecs); in __xfs_btree_split()
2778 xfs_btree_copy_ptrs(cur, rpp, lpp, rrecs); in __xfs_btree_split()
2780 xfs_btree_log_keys(cur, rbp, 1, rrecs); in __xfs_btree_split()
2781 xfs_btree_log_ptrs(cur, rbp, 1, rrecs); in __xfs_btree_split()
2794 xfs_btree_copy_recs(cur, rrp, lrp, rrecs); in __xfs_btree_split()
2795 xfs_btree_log_recs(cur, rbp, 1, rrecs); in __xfs_btree_split()
3729 int rrecs = 0; /* right record count */ in xfs_btree_delrec() local
3978 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_delrec()
4085 rrecs + xfs_btree_get_numrecs(block) <= in xfs_btree_delrec()
4109 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_delrec()
4116 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in xfs_btree_delrec()
4129 for (i = 1; i < rrecs; i++) { in xfs_btree_delrec()
4135 xfs_btree_copy_keys(cur, lkp, rkp, rrecs); in xfs_btree_delrec()
4136 xfs_btree_copy_ptrs(cur, lpp, rpp, rrecs); in xfs_btree_delrec()
4138 xfs_btree_log_keys(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4139 xfs_btree_log_ptrs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4148 xfs_btree_copy_recs(cur, lrp, rrp, rrecs); in xfs_btree_delrec()
4149 xfs_btree_log_recs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4158 xfs_btree_set_numrecs(left, lrecs + rrecs); in xfs_btree_delrec()