Searched refs:mapcount (Results 1 - 9 of 9) sorted by relevance

/linux-master/include/trace/events/
H A Dpage_ref.h23 __field(int, mapcount)
33 __entry->mapcount = page_mapcount(page);
39 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d",
43 __entry->mapcount, __entry->mapping, __entry->mt,
71 __field(int, mapcount)
82 __entry->mapcount = page_mapcount(page);
89 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d ret=%d",
93 __entry->mapcount, __entry->mapping, __entry->mt,
/linux-master/mm/
H A Ddebug.c58 int mapcount = 0; local
66 mapcount = atomic_read(&page->_mapcount) + 1;
68 mapcount += folio_entire_mapcount(folio);
71 pr_warn("page: refcount:%d mapcount:%d mapping:%p index:%#lx pfn:%#lx\n",
72 folio_ref_count(folio), mapcount, mapping,
H A Drmap.c491 * if there is a mapcount, we can dereference the anon_vma after observing
826 int mapcount; member in struct:folio_referenced_arg
866 pra->mapcount--;
889 pra->mapcount--;
919 if (!pra->mapcount)
966 .mapcount = folio_mapcount(folio),
978 if (!pra.mapcount)
1139 int mapcount = folio_entire_mapcount(folio); local
1145 return mapcount;
1153 mapcount
[all...]
H A Dfilemap.c171 int mapcount = page_mapcount(&folio->page); local
173 if (folio_ref_count(folio) >= mapcount + 2) {
181 folio_ref_sub(folio, mapcount);
/linux-master/drivers/xen/
H A Dxen-scsiback.c466 int mapcount = 0, i, err = 0; local
471 if (gnttab_page_cache_get(&info->free_pages, pg + mapcount)) {
472 gnttab_page_cache_put(&info->free_pages, pg, mapcount);
476 gnttab_set_map_op(&map[mapcount], vaddr_page(pg[mapcount]),
478 mapcount++;
479 if (mapcount < VSCSI_GRANT_BATCH)
481 err = scsiback_gnttab_data_map_batch(map, pg, grant, mapcount);
482 pg += mapcount;
483 grant += mapcount;
[all...]
/linux-master/kernel/irq/
H A Dirqdomain.c570 domain->mapcount--;
612 domain->mapcount++;
1173 domain->mapcount++;
1193 domain->mapcount--;
1939 seq_printf(m, "%*smapped: %u\n", ind + 1, "", d->mapcount);
/linux-master/fs/proc/
H A Dtask_mmu.c382 * - supports mapcount up to 2^24, or 16M;
476 * The page_mapcount() is called to get a snapshot of the mapcount.
478 * we cannot always read the mapcount atomically. It is not safe to
481 * as mapcount == 1.
489 int mapcount = page_mapcount(page); local
491 if (mapcount >= 2)
492 pss /= mapcount;
494 mapcount < 2);
543 int mapcount; local
546 mapcount
[all...]
/linux-master/include/linux/
H A Dirqdomain.h127 * @mapcount: The number of mapped interrupts
156 unsigned int mapcount; member in struct:irq_domain
H A Dmm.h1231 int mapcount = atomic_read(&page->_mapcount) + 1;
1234 if (mapcount < 0)
1235 mapcount = 0;
1237 mapcount += folio_entire_mapcount(page_folio(page));
1239 return mapcount;
2172 * looking at the precise mapcount of the first subpage in the folio, and
1232 int mapcount = atomic_read(&page->_mapcount) + 1; local

Completed in 252 milliseconds