Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:activate_page

Proto:void activate_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
327  pgdat = page_pgdat(page)
329  page = compound_head(page)
330  spin_lock_irq( & Write-intensive fields used by page reclaim )
331  __activate_page(page, mem_cgroup_page_lruvec(page, pgdat), NULL)
332  spin_unlock_irq( & Write-intensive fields used by page reclaim )
Caller
NameDescribe
mark_page_accessedMark 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,
do_swap_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases
unuse_pteNo need to decide whether this PTE shares the swap entry with others,* just let do_wp_page work it out if a write is requested later - to* force COW, vm_page_prot omits write permission from any private vma.