Lines Matching refs:pmem_nmpages
108 static pgcnt_t pmem_nmpages = 0;
109 /* To protect pmem_nmpages, pmem_mpool and pmem_occ_lpgs. */
713 pmem_nmpages -= pmem_pgcnt;
714 ASSERT((pmem_nmpages && pmem_mpool) || (!pmem_nmpages && !pmem_mpool));
724 pmem_nmpages += n;
725 ASSERT((pmem_nmpages && pmem_mpool) || (!pmem_nmpages && !pmem_mpool));
729 * Try to grab MIN(pmem_nmpages, n) pages from pmem_mpool, put them into *ppp
739 i = MIN(pmem_nmpages, n);
742 pmem_nmpages -= i;
743 ASSERT((pmem_nmpages && pmem_mpool) || (!pmem_nmpages && !pmem_mpool));