Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reclaim_clean_pages_from_list

Proto:unsigned long reclaim_clean_pages_from_list(struct zone *zone, struct list_head *page_list)

Type:unsigned long

Parameter:

TypeParameterName
struct zone *zone
struct list_head *page_list
1504  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., Can mapped pages be reclaimed? = 1, }
1512  LIST_HEAD(clean_pages)
1515  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 && Not PageDirty(page) && Not __PageMovable(page) && Not PageUnevictable(page) Then
1517  ClearPageActive(page)
1518  list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
1522  ret = shrink_page_list() returns the number of reclaimed pages
1524  list_splice - join two lists, this is designed for stacks*@list: the new list to add.*@head: the place to add it in the first list.
1525  mod_node_page_state(zone_pgdat, NR_ISOLATED_FILE, - ret)
1526  Return ret