Home
last modified time | relevance | path

Searched refs:_mapcount (Results 1 – 12 of 12) sorted by relevance

/linux-5.15/Documentation/vm/
A Dtranshuge.rst120 - map/unmap of the pages with PTE entry increment/decrement ->_mapcount
125 ->_mapcount of all sub-pages in order to have race-free detection of
130 For anonymous pages, PageDoubleMap() also indicates ->_mapcount in all
136 tracking. The alternative is to alter ->_mapcount in all subpages on each
156 page->_mapcount of anonymous pages. File pages just get unmapped.
/linux-5.15/mm/
H A Drmap.c1173 first = atomic_inc_and_test(&page->_mapcount); in do_page_add_anon_rmap()
1234 atomic_set(&page->_mapcount, 0); ///设置_mapcount=0,初始值为-1 in page_add_new_anon_rmap()
1260 if (atomic_inc_and_test(&page[i]._mapcount)) in page_add_file_rmap()
1281 if (!atomic_inc_and_test(&page->_mapcount)) in page_add_file_rmap()
1307 if (atomic_add_negative(-1, &page[i]._mapcount)) in page_remove_file_rmap()
1319 if (!atomic_add_negative(-1, &page->_mapcount)) in page_remove_file_rmap()
1356 if (atomic_add_negative(-1, &page[i]._mapcount)) in page_remove_anon_compound_rmap()
1400 if (!atomic_add_negative(-1, &page->_mapcount)) in page_remove_rmap()
H A Dutil.c684 return atomic_read(&page->_mapcount) >= 0; in page_mapped()
691 if (atomic_read(&page[i]._mapcount) >= 0) in page_mapped()
739 ret = atomic_read(&page->_mapcount) + 1; in __page_mapcount()
H A Dhuge_memory.c2105 atomic_inc(&page[i]._mapcount); in __split_huge_pmd_locked()
2117 atomic_inc(&page[i]._mapcount); in __split_huge_pmd_locked()
2128 atomic_dec(&page[i]._mapcount); in __split_huge_pmd_locked()
2345 VM_BUG_ON_PAGE(atomic_read(&page_tail->_mapcount) != -1, page_tail); in __split_huge_page_tail()
2503 return atomic_read(&page->_mapcount) + 1; in total_mapcount()
2511 ret += atomic_read(&page[i]._mapcount) + 1; in total_mapcount()
2552 mapcount = atomic_read(&page->_mapcount) + 1; in page_trans_huge_mapcount()
2562 mapcount = atomic_read(&page[i]._mapcount) + 1; in page_trans_huge_mapcount()
A Dpage_alloc.c1173 if (unlikely(atomic_read(&page->_mapcount) != -1)) in page_expected_state()
1191 if (unlikely(atomic_read(&page->_mapcount) != -1)) in page_bad_reason()
H A Dswapfile.c1642 mapcount = atomic_read(&page[i]._mapcount) + 1; in page_trans_huge_map_swapcount()
/linux-5.15/include/linux/
H A Drmap.h209 atomic_inc(compound ? compound_mapcount_ptr(page) : &page->_mapcount); in page_dup_rmap()
H A Dmm_types.h218 atomic_t _mapcount; ///统计进程映射的个数 member
H A Dmm.h861 atomic_set(&(page)->_mapcount, -1); in page_mapcount_reset()
878 return atomic_read(&page->_mapcount) + 1; in page_mapcount()
/linux-5.15/my_notes/
A Dreadmm.c179 atomic_t _mapcount;
/linux-5.15/kernel/
A Dcrash_core.c434 VMCOREINFO_OFFSET(page, _mapcount); in crash_save_vmcoreinfo_init()
/linux-5.15/Documentation/admin-guide/kdump/
A Dvmcoreinfo.rst144 (page, flags|_refcount|mapping|lru|_mapcount|private|compound_dtor|compound_order|compound_head)