Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\util.c Create Date:2022-07-28 14:22:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Slow path of page_mapcount() for compound pages

Proto:int __page_mapcount(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
698  ret = atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.) + 1
703  If Not PageAnon(page) && Not PageHuge(page) Then Return ret
705  page = compound_head(page)
706  ret += atomic_read(compound_mapcount_ptr(page)) + 1
707  If PageDoubleMap indicates that the compound page is mapped with PTEs as well* as PMDs.* This is required for optimization of rmap operations for THP: we can postpone* per small page mapcount accounting (and its overhead from atomic operations) Then ret--
709  Return ret
Caller
NameDescribe
page_mapcount