Lines Matching defs:mapcount
212 * mapcount to a short.
230 int mapcount, struct vm_area_struct *vma)
232 __folio_large_mapcount_sanity_checks(folio, mapcount, vma->vm_mm->mm_id);
238 atomic_set(&folio->_large_mapcount, mapcount - 1);
239 folio->_mm_id_mapcount[0] = mapcount - 1;
257 * can in theory overflow the per-MM mapcount (although only for
307 * mapcount (some mappings added when no slot was free, some mappings
328 * slots must be free (mapcount == -1), and we'll also mark it as
344 static inline void folio_set_large_mapcount(struct folio *folio, int mapcount,
348 atomic_set(&folio->_large_mapcount, mapcount - 1);
413 /* When (un)mapping zeropages, we should never touch ref+mapcount. */
420 * handle any desired mapcount+stats accounting for these folios in