Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:10:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:unlock_page_lru

Proto:static void unlock_page_lru(struct page *page, int isolated)

Type:void

Parameter:

TypeParameterName
struct page *page
intisolated
2593  pgdat = page_pgdat(page)
2595  If isolated Then
2598  lruvec = mem_cgroup_page_lruvec - return lruvec for isolating/putting an LRU page*@page: the page*@pgdat: pgdat of the page* This function is only safe when following the LRU page isolation* and putback protocol: the LRU lock must be held, and the page must
2599  VM_BUG_ON_PAGE(PageLRU(page), page)
2600  SetPageLRU(page)
2601  add_page_to_lru_list(page, lruvec, page_lru - which LRU list should a page be on?*@page: the page to test* Returns the LRU list a page should be on, as an index* into the array of LRU lists.)
2603  spin_unlock_irq( & Write-intensive fields used by page reclaim )
Caller
NameDescribe
commit_charge