函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lru_lazyfree_fn

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

返回类型:void

参数:

类型参数名称
struct page *page
struct lruvec *lruvec
void *arg
567  如果PageLRU(page)且PageAnon(page)且PageSwapBacked(page)且非PageSwapCache(page)且非PageUnevictable(page)则
569  active等于PageActive(page)
571  del_page_from_lru_list(page, lruvec, LRU_INACTIVE_ANON + active)
573  ClearPageActive(page)
574  ClearPageReferenced(page)
580  ClearPageSwapBacked(page)
581  add_page_to_lru_list(page, lruvec, LRU_INACTIVE_FILE)
583  __count_vm_events(PGLAZYFREE, hpage_nr_pages(page))
584  count_memcg_page_event(page, PGLAZYFREE)
585  update_page_reclaim_stat(lruvec, 1, 0)