Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reclaim_pages

Proto:unsigned long reclaim_pages(struct list_head *page_list)

Type:unsigned long

Parameter:

TypeParameterName
struct list_head *page_list
2113  nid = -1
2114  nr_reclaimed = 0
2115  LIST_HEAD(node_page_list)
2118  struct scan_control sc = { This context's GFP mask = GFP_KERNEL, Scan (total_size >> priority) pages at once = The "priority" of VM scanning is how much of the queues we will scan in one* go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the* queues ("queue_length >> 12") during an aging round., Writepage batching in laptop mode; RECLAIM_WRITE = 1, Can mapped pages be reclaimed? = 1, Can pages be swapped as part of reclaim? = 1, }
2126  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
2127  page = lru_to_page(page_list)
2128  If nid == -1 Then
2129  nid = page_to_nid(page)
2133  If nid == page_to_nid(page) Then
2136  Continue
2139  nr_reclaimed += shrink_page_list() returns the number of reclaimed pages
2149  nid = -1
2152  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
2153  nr_reclaimed += shrink_page_list() returns the number of reclaimed pages
2164  Return nr_reclaimed
Caller
NameDescribe
madvise_cold_or_pageout_pte_range