Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__pagevec_lru_add_fn

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

Type:void

Parameter:

TypeParameterName
struct page *page
struct lruvec *lruvec
void *arg
928  was_unevictable = TestClearPageUnevictable(page)
930  VM_BUG_ON_PAGE(PageLRU(page), page)
932  SetPageLRU(page)
959  smp_mb()
961  If page_evictable(page) Then
962  lru = 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.
963  update_page_reclaim_stat(lruvec, 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, PageActive(page))
965  If was_unevictable Then Disable counters
967  Else
968  lru = LRU_UNEVICTABLE
969  ClearPageActive(page)
970  SetPageUnevictable(page)
971  If Not was_unevictable Then Disable counters
975  add_page_to_lru_list(page, lruvec, lru)
976  trace_mm_lru_insertion(page, lru)