Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:17:40
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page_check_references

Proto:static enum page_references page_check_references(struct page *page, struct scan_control *sc)

Type:enum page_references

Parameter:

TypeParameterName
struct page *page
struct scan_control *sc
1001  referenced_ptes = page_referenced - test if the page was referenced*@page: the page to test*@is_locked: caller holds lock on the page*@memcg: target memory cgroup*@vm_flags: collect encountered vma->vm_flags who actually referenced the page* Quick test_and_clear_referenced
1003  referenced_page = TestClearPageReferenced(page)
1009  If vm_flags & VM_LOCKED Then Return PAGEREF_RECLAIM
1012  If referenced_ptes Then
1013  If PageSwapBacked(page) Then Return PAGEREF_ACTIVATE
1029  SetPageReferenced(page)
1031  If referenced_page || referenced_ptes > 1 Then Return PAGEREF_ACTIVATE
1037  If vm_flags & VM_EXEC Then Return PAGEREF_ACTIVATE
1040  Return PAGEREF_KEEP
1044  If referenced_page && Not PageSwapBacked(page) Then Return PAGEREF_RECLAIM_CLEAN
1047  Return PAGEREF_RECLAIM
Caller
NameDescribe
shrink_page_listshrink_page_list() returns the number of reclaimed pages