Lines Matching refs:lrecs
2309 int lrecs; /* left record count */ in xfs_btree_lshift() local
2352 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_lshift()
2353 if (lrecs == cur->bc_ops->get_maxrecs(cur, level)) in xfs_btree_lshift()
2363 lrecs++; in xfs_btree_lshift()
2378 lkp = xfs_btree_key_addr(cur, lrecs, left); in xfs_btree_lshift()
2381 lpp = xfs_btree_ptr_addr(cur, lrecs, left); in xfs_btree_lshift()
2391 xfs_btree_log_keys(cur, lbp, lrecs, lrecs); in xfs_btree_lshift()
2392 xfs_btree_log_ptrs(cur, lbp, lrecs, lrecs); in xfs_btree_lshift()
2395 xfs_btree_key_addr(cur, lrecs - 1, left), lkp)); in xfs_btree_lshift()
2400 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_lshift()
2404 xfs_btree_log_recs(cur, lbp, lrecs, lrecs); in xfs_btree_lshift()
2407 xfs_btree_rec_addr(cur, lrecs - 1, left), lrp)); in xfs_btree_lshift()
2410 xfs_btree_set_numrecs(left, lrecs); in xfs_btree_lshift()
2511 int lrecs; /* left record count */ in xfs_btree_rshift() local
2537 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_rshift()
2538 if (cur->bc_ptrs[level] >= lrecs) in xfs_btree_rshift()
2564 lkp = xfs_btree_key_addr(cur, lrecs, left); in xfs_btree_rshift()
2565 lpp = xfs_btree_ptr_addr(cur, lrecs, left); in xfs_btree_rshift()
2596 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_rshift()
2609 xfs_btree_set_numrecs(left, --lrecs); in xfs_btree_rshift()
2681 int lrecs; in __xfs_btree_split() local
2721 lrecs = xfs_btree_get_numrecs(left); in __xfs_btree_split()
2722 rrecs = lrecs / 2; in __xfs_btree_split()
2723 if ((lrecs & 1) && cur->bc_ptrs[level] <= rrecs + 1) in __xfs_btree_split()
2725 src_index = (lrecs - rrecs + 1); in __xfs_btree_split()
2730 lrecs -= rrecs; in __xfs_btree_split()
2731 xfs_btree_set_numrecs(left, lrecs); in __xfs_btree_split()
2819 if (cur->bc_ptrs[level] > lrecs + 1) { in __xfs_btree_split()
2821 cur->bc_ptrs[level] -= lrecs; in __xfs_btree_split()
3683 int lrecs = 0; /* left record count */ in xfs_btree_delrec() local
3997 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_delrec()
4008 lrecs + xfs_btree_get_numrecs(block) <= in xfs_btree_delrec()
4050 lrecs = xfs_btree_get_numrecs(left); in xfs_btree_delrec()
4064 lkp = xfs_btree_key_addr(cur, lrecs + 1, left); in xfs_btree_delrec()
4065 lpp = xfs_btree_ptr_addr(cur, lrecs + 1, left); in xfs_btree_delrec()
4078 xfs_btree_log_keys(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4079 xfs_btree_log_ptrs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4085 lrp = xfs_btree_rec_addr(cur, lrecs + 1, left); in xfs_btree_delrec()
4089 xfs_btree_log_recs(cur, lbp, lrecs + 1, lrecs + rrecs); in xfs_btree_delrec()
4098 xfs_btree_set_numrecs(left, lrecs + rrecs); in xfs_btree_delrec()
4124 cur->bc_ptrs[level] += lrecs; in xfs_btree_delrec()