Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Mark a page as having seen activity.* inactive,unreferenced -> inactive,referenced* inactive,referenced -> active,unreferenced* active,unreferenced -> active,referenced* When a newly allocated page is not yet visible, so safe for non-atomic ops,

Proto:void mark_page_accessed(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
375  page = compound_head(page)
377  If Not PageReferenced(page) Then
378  SetPageReferenced(page)
379  Else if PageUnevictable(page) Then Else if Not PageActive(page) Then
392  If PageLRU(page) Then activate_page(page)
394  Else __lru_cache_activate_page(page)
396  ClearPageReferenced(page)
397  If page_is_file_cache - should the page be on a file LRU or anon LRU?*@page: the page to test* Returns 1 if @page is page cache page backed by a regular filesystem,* or 0 if @page is anonymous, tmpfs or otherwise ram or swap backed Then workingset_activation(page)
400  If page_is_idle(page) Then clear_page_idle(page)
Caller
NameDescribe
generic_file_buffered_readgeneric_file_buffered_read - generic file read routine*@iocb: the iocb to read*@iter: data destination*@written: already copied* This is a generic file read routine, and uses the* mapping->a_ops->readpage() function for the actual low-level stuff.
do_read_cache_page
follow_page_pte
zap_pte_range
try_to_merge_one_pagery_to_merge_one_page - take two pages and merge them into one*@vma: the vma that holds the pte pointing to page*@page: the PageAnon page that we want to replace with kpage*@kpage: the PageKsm page that we want to map instead of page,
iomap_zero