Lines Matching defs:nmblocks
183 static int mblock_alloc(mpo_config_t *, update_t, int nmblocks);
1462 mblock_alloc(mpo_config_t *mc, update_t utype, int nmblocks)
1466 int nstripes = MAX_MEM_NODES * nmblocks;
1467 size_t mblocksz = nmblocks * sizeof (struct mblock_md);
1486 ms = (mem_stripe_t *)(mb + nmblocks);
1488 } else if (nmblocks <= SMALL_MBLOCKS_COUNT) {
1508 ms = (mem_stripe_t *)(mb + nmblocks);
1513 mc->mc_nmblocks = nmblocks;
1515 MPO_DEBUG("mblock_alloc: mblocks: %d\n", nmblocks);
1649 int nmblocks = 0;
1659 nmblocks = md_alloc_scan_dag(md, root, PROP_LG_MBLOCK, "fwd",
1661 if (nmblocks <= 0) {
1666 if (mblock_alloc(mc, U_ADD, nmblocks) < 0)
1693 int nmblocks = mc_old->mc_nmblocks;
1701 if (mblock_alloc(mc_new, U_DEL, nmblocks + 1) < 0)
1704 bcopy(mc_old->mc_mblocks, mblock, nmblocks * sizeof (mblock_md_t));
1710 for (i = 0; i < nmblocks; i++) {
1728 for (j = i; j < nmblocks - 1; j++)
1730 nmblocks--;
1731 bzero(&mblock[nmblocks], sizeof (*mblock));
1734 for (j = nmblocks - 1; j >= i; j--)
1741 nmblocks++;
1764 mc_new->mc_nmblocks = nmblocks;
1783 int nmblocks = mc->mc_nmblocks;
1784 int mstripesz = MAX_MEM_NODES * nmblocks * sizeof (mem_stripe_t);
1791 if (nmblocks == 1) {
1794 mc->mc_nstripes = nmblocks;
1796 for (i = 0; i < nmblocks; i++) {
1806 mc->mc_nstripes = max_locality_groups * nmblocks;
1810 for (i = 0; i < nmblocks; i++) {