Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_page_lru

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

Type:void

Parameter:

TypeParameterName
struct page *page
int *isolated
2577  pgdat = page_pgdat(page)
2579  spin_lock_irq( & Write-intensive fields used by page reclaim )
2580  If PageLRU(page) Then
2583  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
2584  ClearPageLRU(page)
2585  del_page_from_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.)
2586  isolated = 1
2587  Else isolated = 0
Caller
NameDescribe
commit_charge