Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lru_deactivate_fn

Proto:static void lru_deactivate_fn(struct page *page, struct lruvec *lruvec, void *arg)

Type:void

Parameter:

TypeParameterName
struct page *page
struct lruvec *lruvec
void *arg
550  If PageLRU(page) && PageActive(page) && Not PageUnevictable(page) Then
551  file = 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
552  lru = page_lru_base_type - which LRU list type should a page be on?*@page: the page to test* Used for LRU list index arithmetic.* Returns the base LRU type - file or anon - @page should be on.
554  del_page_from_lru_list(page, lruvec, lru + LRU_ACTIVE)
555  ClearPageActive(page)
556  ClearPageReferenced(page)
557  add_page_to_lru_list(page, lruvec, lru)
559  __count_vm_events(PGDEACTIVATE, hpage_nr_pages(page))
560  update_page_reclaim_stat(lruvec, file, 0)