Lines Matching refs:rrecs

2428 	int			rrecs;		/* right record count */  in xfs_btree_lshift()  local
2470 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_lshift()
2478 rrecs--; in xfs_btree_lshift()
2527 xfs_btree_set_numrecs(right, rrecs); in xfs_btree_lshift()
2533 XFS_BTREE_STATS_ADD(cur, moves, rrecs - 1); in xfs_btree_lshift()
2536 for (i = 0; i < rrecs; i++) { in xfs_btree_lshift()
2544 -1, rrecs); in xfs_btree_lshift()
2547 -1, rrecs); in xfs_btree_lshift()
2549 xfs_btree_log_keys(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2550 xfs_btree_log_ptrs(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2555 -1, rrecs); in xfs_btree_lshift()
2556 xfs_btree_log_recs(cur, rbp, 1, rrecs); in xfs_btree_lshift()
2626 int rrecs; /* right record count */ in xfs_btree_rshift() local
2662 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_rshift()
2663 if (rrecs == cur->bc_ops->get_maxrecs(cur, level)) in xfs_btree_rshift()
2667 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in xfs_btree_rshift()
2684 for (i = rrecs - 1; i >= 0; i--) { in xfs_btree_rshift()
2690 xfs_btree_shift_keys(cur, rkp, 1, rrecs); in xfs_btree_rshift()
2691 xfs_btree_shift_ptrs(cur, rpp, 1, rrecs); in xfs_btree_rshift()
2701 xfs_btree_log_keys(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2702 xfs_btree_log_ptrs(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2714 xfs_btree_shift_recs(cur, rrp, 1, rrecs); in xfs_btree_rshift()
2718 xfs_btree_log_recs(cur, rbp, 1, rrecs + 1); in xfs_btree_rshift()
2727 xfs_btree_set_numrecs(right, ++rrecs); in xfs_btree_rshift()
2827 int rrecs; in __xfs_btree_split() local
2867 rrecs = lrecs / 2; in __xfs_btree_split()
2868 if ((lrecs & 1) && cur->bc_levels[level].ptr <= rrecs + 1) in __xfs_btree_split()
2869 rrecs++; in __xfs_btree_split()
2870 src_index = (lrecs - rrecs + 1); in __xfs_btree_split()
2872 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in __xfs_btree_split()
2875 lrecs -= rrecs; in __xfs_btree_split()
2877 xfs_btree_set_numrecs(right, xfs_btree_get_numrecs(right) + rrecs); in __xfs_btree_split()
2896 for (i = src_index; i < rrecs; i++) { in __xfs_btree_split()
2903 xfs_btree_copy_keys(cur, rkp, lkp, rrecs); in __xfs_btree_split()
2904 xfs_btree_copy_ptrs(cur, rpp, lpp, rrecs); in __xfs_btree_split()
2906 xfs_btree_log_keys(cur, rbp, 1, rrecs); in __xfs_btree_split()
2907 xfs_btree_log_ptrs(cur, rbp, 1, rrecs); in __xfs_btree_split()
2920 xfs_btree_copy_recs(cur, rrp, lrp, rrecs); in __xfs_btree_split()
2921 xfs_btree_log_recs(cur, rbp, 1, rrecs); in __xfs_btree_split()
3875 int rrecs = 0; /* right record count */ in xfs_btree_delrec() local
4116 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_delrec()
4227 rrecs + xfs_btree_get_numrecs(block) <= in xfs_btree_delrec()
4251 rrecs = xfs_btree_get_numrecs(right); in xfs_btree_delrec()
4258 XFS_BTREE_STATS_ADD(cur, moves, rrecs); in xfs_btree_delrec()
4271 for (i = 1; i < rrecs; i++) { in xfs_btree_delrec()
4277 xfs_btree_copy_keys(cur, lkp, rkp, rrecs); in xfs_btree_delrec()
4278 xfs_btree_copy_ptrs(cur, lpp, rpp, rrecs); in xfs_btree_delrec()
4280 xfs_btree_log_keys(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4281 xfs_btree_log_ptrs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4290 xfs_btree_copy_recs(cur, lrp, rrp, rrecs); in xfs_btree_delrec()
4291 xfs_btree_log_recs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4300 xfs_btree_set_numrecs(left, lrecs + rrecs); in xfs_btree_delrec()