• Home
  • Raw
  • Download

Lines Matching refs:lev

838 	int			lev,		/* level in btree */  in xfs_btree_readahead()  argument
848 (lev == cur->bc_nlevels - 1)) in xfs_btree_readahead()
851 if ((cur->bc_ra[lev] | lr) == cur->bc_ra[lev]) in xfs_btree_readahead()
854 cur->bc_ra[lev] |= lr; in xfs_btree_readahead()
855 block = XFS_BUF_TO_BLOCK(cur->bc_bufs[lev]); in xfs_btree_readahead()
904 int lev, /* level in btree */ in xfs_btree_setbuf() argument
909 if (cur->bc_bufs[lev]) in xfs_btree_setbuf()
910 xfs_trans_brelse(cur->bc_tp, cur->bc_bufs[lev]); in xfs_btree_setbuf()
911 cur->bc_bufs[lev] = bp; in xfs_btree_setbuf()
912 cur->bc_ra[lev] = 0; in xfs_btree_setbuf()
917 cur->bc_ra[lev] |= XFS_BTCUR_LEFTRA; in xfs_btree_setbuf()
919 cur->bc_ra[lev] |= XFS_BTCUR_RIGHTRA; in xfs_btree_setbuf()
922 cur->bc_ra[lev] |= XFS_BTCUR_LEFTRA; in xfs_btree_setbuf()
924 cur->bc_ra[lev] |= XFS_BTCUR_RIGHTRA; in xfs_btree_setbuf()
1456 int lev; in xfs_btree_increment() local
1490 for (lev = level + 1; lev < cur->bc_nlevels; lev++) { in xfs_btree_increment()
1491 block = xfs_btree_get_block(cur, lev, &bp); in xfs_btree_increment()
1494 error = xfs_btree_check_block(cur, block, lev, bp); in xfs_btree_increment()
1499 if (++cur->bc_ptrs[lev] <= xfs_btree_get_numrecs(block)) in xfs_btree_increment()
1503 xfs_btree_readahead(cur, lev, XFS_BTCUR_RIGHTRA); in xfs_btree_increment()
1510 if (lev == cur->bc_nlevels) { in xfs_btree_increment()
1517 ASSERT(lev < cur->bc_nlevels); in xfs_btree_increment()
1523 for (block = xfs_btree_get_block(cur, lev, &bp); lev > level; ) { in xfs_btree_increment()
1526 ptrp = xfs_btree_ptr_addr(cur, cur->bc_ptrs[lev], block); in xfs_btree_increment()
1527 --lev; in xfs_btree_increment()
1532 xfs_btree_setbuf(cur, lev, bp); in xfs_btree_increment()
1533 cur->bc_ptrs[lev] = 1; in xfs_btree_increment()
1563 int lev; in xfs_btree_decrement() local
1598 for (lev = level + 1; lev < cur->bc_nlevels; lev++) { in xfs_btree_decrement()
1599 if (--cur->bc_ptrs[lev] > 0) in xfs_btree_decrement()
1602 xfs_btree_readahead(cur, lev, XFS_BTCUR_LEFTRA); in xfs_btree_decrement()
1609 if (lev == cur->bc_nlevels) { in xfs_btree_decrement()
1616 ASSERT(lev < cur->bc_nlevels); in xfs_btree_decrement()
1622 for (block = xfs_btree_get_block(cur, lev, &bp); lev > level; ) { in xfs_btree_decrement()
1625 ptrp = xfs_btree_ptr_addr(cur, cur->bc_ptrs[lev], block); in xfs_btree_decrement()
1626 --lev; in xfs_btree_decrement()
1630 xfs_btree_setbuf(cur, lev, bp); in xfs_btree_decrement()
1631 cur->bc_ptrs[lev] = xfs_btree_get_numrecs(block); in xfs_btree_decrement()