Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lru_lazyfree_fn

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

Type:void

Parameter:

TypeParameterName
struct page *page
struct lruvec *lruvec
void *arg
567  If PageLRU(page) && PageAnon(page) && PageSwapBacked(page) && Not PageSwapCache(page) && Not PageUnevictable(page) Then
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)