Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:deactivate_page - deactivate a page*@page: page to deactivate* deactivate_page() moves @page to the inactive list if @page was on the active* list and was not an unevictable page. This is done to accelerate the reclaim* of @page.

Proto:void deactivate_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
662  If PageLRU(page) && PageActive(page) && Not PageUnevictable(page) Then
663  pvec = Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(lru_deactivate_pvecs)
665  get_page(page)
666  If Not Add a page to a pagevec. Returns the number of slots still available. || PageCompound(page) Then pagevec_lru_move_fn(pvec, lru_deactivate_fn, NULL)
668  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_deactivate_pvecs)
Caller
NameDescribe
madvise_cold_or_pageout_pte_range