Lines Matching refs:totpages
636 pgcnt_t oelems, nelems, totpages;
648 * anon array. If growing down, totpages is all pages from
654 totpages = oldamp_pgs - startidx + newseg_pgs;
656 totpages = startidx + oldseg_pgs + newseg_pgs;
660 if (oldamp_pgs >= totpages) {
662 *startidx_p = oldamp_pgs - totpages;
673 if (totpages <= ANON_CHUNK_SIZE || (ahp->flags & ANON_ALLOC_FORCE)) {
674 newamp_pgs = P2ROUNDUP(totpages, ANON_1_LEVEL_INC);
678 newamp_pgs = P2ROUNDUP(totpages, ANON_2_LEVEL_INC);
728 *startidx_p = newamp_pgs - totpages;