Lines Matching refs:bc_levels

511 		if (cur->bc_levels[i].bp)  in xfs_btree_del_cursor()
512 xfs_trans_brelse(cur->bc_tp, cur->bc_levels[i].bp); in xfs_btree_del_cursor()
602 new->bc_levels[i].ptr = cur->bc_levels[i].ptr; in xfs_btree_dup_cursor()
603 new->bc_levels[i].ra = cur->bc_levels[i].ra; in xfs_btree_dup_cursor()
604 bp = cur->bc_levels[i].bp; in xfs_btree_dup_cursor()
619 new->bc_levels[i].bp = bp; in xfs_btree_dup_cursor()
861 *bpp = cur->bc_levels[level].bp; in xfs_btree_get_block()
891 cur->bc_levels[level].ptr = 1; in xfs_btree_firstrec()
921 cur->bc_levels[level].ptr = be16_to_cpu(block->bb_numrecs); in xfs_btree_lastrec()
1061 if ((cur->bc_levels[lev].ra | lr) == cur->bc_levels[lev].ra) in xfs_btree_readahead()
1064 cur->bc_levels[lev].ra |= lr; in xfs_btree_readahead()
1065 block = XFS_BUF_TO_BLOCK(cur->bc_levels[lev].bp); in xfs_btree_readahead()
1140 if (cur->bc_levels[lev].bp) in xfs_btree_setbuf()
1141 xfs_trans_brelse(cur->bc_tp, cur->bc_levels[lev].bp); in xfs_btree_setbuf()
1142 cur->bc_levels[lev].bp = bp; in xfs_btree_setbuf()
1143 cur->bc_levels[lev].ra = 0; in xfs_btree_setbuf()
1148 cur->bc_levels[lev].ra |= XFS_BTCUR_LEFTRA; in xfs_btree_setbuf()
1150 cur->bc_levels[lev].ra |= XFS_BTCUR_RIGHTRA; in xfs_btree_setbuf()
1153 cur->bc_levels[lev].ra |= XFS_BTCUR_LEFTRA; in xfs_btree_setbuf()
1155 cur->bc_levels[lev].ra |= XFS_BTCUR_RIGHTRA; in xfs_btree_setbuf()
1685 if (++cur->bc_levels[level].ptr <= xfs_btree_get_numrecs(block)) in xfs_btree_increment()
1708 if (++cur->bc_levels[lev].ptr <= xfs_btree_get_numrecs(block)) in xfs_btree_increment()
1736 ptrp = xfs_btree_ptr_addr(cur, cur->bc_levels[lev].ptr, block); in xfs_btree_increment()
1743 cur->bc_levels[lev].ptr = 1; in xfs_btree_increment()
1779 if (--cur->bc_levels[level].ptr > 0) in xfs_btree_decrement()
1803 if (--cur->bc_levels[lev].ptr > 0) in xfs_btree_decrement()
1830 ptrp = xfs_btree_ptr_addr(cur, cur->bc_levels[lev].ptr, block); in xfs_btree_decrement()
1836 cur->bc_levels[lev].ptr = xfs_btree_get_numrecs(block); in xfs_btree_decrement()
1900 bp = cur->bc_levels[level].bp; in xfs_btree_lookup_get_block()
2050 cur->bc_levels[0].ptr = dir != XFS_LOOKUP_LE; in xfs_btree_lookup()
2102 cur->bc_levels[level].ptr = keyno; in xfs_btree_lookup()
2119 cur->bc_levels[0].ptr = keyno; in xfs_btree_lookup()
2132 cur->bc_levels[0].ptr = keyno; in xfs_btree_lookup()
2291 ptr = cur->bc_levels[level].ptr; in __xfs_btree_updkeys()
2358 ptr = cur->bc_levels[level].ptr; in xfs_btree_update_keys()
2392 ptr = cur->bc_levels[0].ptr; in xfs_btree_update()
2457 if (cur->bc_levels[level].ptr <= 1) in xfs_btree_lshift()
2592 cur->bc_levels[level].ptr--; in xfs_btree_lshift()
2653 if (cur->bc_levels[level].ptr >= lrecs) in xfs_btree_rshift()
2868 if ((lrecs & 1) && cur->bc_levels[level].ptr <= rrecs + 1) in __xfs_btree_split()
2964 if (cur->bc_levels[level].ptr > lrecs + 1) { in __xfs_btree_split()
2966 cur->bc_levels[level].ptr -= lrecs; in __xfs_btree_split()
2976 (*curp)->bc_levels[level + 1].ptr++; in __xfs_btree_split()
3155 cur->bc_levels[level + 1].ptr = 1; in xfs_btree_new_iroot()
3331 cur->bc_levels[cur->bc_nlevels].ptr = nptr; in xfs_btree_new_root()
3389 *oindex = *index = cur->bc_levels[level].ptr; in xfs_btree_make_block_unfull()
3404 *index = cur->bc_levels[level].ptr; in xfs_btree_make_block_unfull()
3451 ptr = cur->bc_levels[level].ptr; in xfs_btree_insrec()
3789 cur->bc_levels[level - 1].bp = NULL; in xfs_btree_kill_iroot()
3822 cur->bc_levels[level].bp = NULL; in xfs_btree_kill_root()
3823 cur->bc_levels[level].ra = 0; in xfs_btree_kill_root()
3882 ptr = cur->bc_levels[level].ptr; in xfs_btree_delrec()
4188 cur->bc_levels[0].ptr++; in xfs_btree_delrec()
4325 cur->bc_levels[level].bp = lbp; in xfs_btree_delrec()
4326 cur->bc_levels[level].ptr += lrecs; in xfs_btree_delrec()
4327 cur->bc_levels[level].ra = 0; in xfs_btree_delrec()
4347 cur->bc_levels[level].ptr--; in xfs_btree_delrec()
4410 if (cur->bc_levels[level].ptr == 0) { in xfs_btree_delete()
4441 ptr = cur->bc_levels[0].ptr; in xfs_btree_get_rec()
4989 cur->bc_levels[level].ptr = 1; in xfs_btree_overlapped_query_range()
4995 if (cur->bc_levels[level].ptr > in xfs_btree_overlapped_query_range()
4999 cur->bc_levels[level + 1].ptr++; in xfs_btree_overlapped_query_range()
5006 recp = xfs_btree_rec_addr(cur, cur->bc_levels[0].ptr, in xfs_btree_overlapped_query_range()
5028 cur->bc_levels[level].ptr++; in xfs_btree_overlapped_query_range()
5033 lkp = xfs_btree_key_addr(cur, cur->bc_levels[level].ptr, block); in xfs_btree_overlapped_query_range()
5034 hkp = xfs_btree_high_key_addr(cur, cur->bc_levels[level].ptr, in xfs_btree_overlapped_query_range()
5036 pp = xfs_btree_ptr_addr(cur, cur->bc_levels[level].ptr, block); in xfs_btree_overlapped_query_range()
5062 cur->bc_levels[level].ptr = 1; in xfs_btree_overlapped_query_range()
5065 cur->bc_levels[level].ptr++; in xfs_btree_overlapped_query_range()
5076 if (cur->bc_levels[0].bp == NULL) { in xfs_btree_overlapped_query_range()
5078 if (cur->bc_levels[i].bp) { in xfs_btree_overlapped_query_range()
5080 cur->bc_levels[i].bp); in xfs_btree_overlapped_query_range()
5081 cur->bc_levels[i].bp = NULL; in xfs_btree_overlapped_query_range()
5082 cur->bc_levels[i].ptr = 0; in xfs_btree_overlapped_query_range()
5083 cur->bc_levels[i].ra = 0; in xfs_btree_overlapped_query_range()
5327 if (cur->bc_levels[0].ptr < xfs_btree_get_numrecs(block)) in xfs_btree_has_more_records()