函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap.c Create Date:2022-07-27 15:37:26
Last Modify:2022-05-23 13:40:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__pagevec_lru_add_fn

函数原型:static void __pagevec_lru_add_fn(struct page *page, struct lruvec *lruvec, void *arg)

返回类型:void

参数:

类型参数名称
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  如果page_evictable(page)则
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  如果was_unevictableDisable counters
967  否则
968  lru等于LRU_UNEVICTABLE
969  ClearPageActive(page)
970  SetPageUnevictable(page)
971  如果非was_unevictableDisable counters
975  add_page_to_lru_list(page, lruvec, lru)
976  trace_mm_lru_insertion(page, lru)