Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:update_page_reclaim_stat

Proto:static void update_page_reclaim_stat(struct lruvec *lruvec, int file, int rotated)

Type:void

Parameter:

TypeParameterName
struct lruvec *lruvec
intfile
introtated
268  reclaim_stat = reclaim_stat
270  recent_scanned[file]++
271  If rotated Then * The pageout code in vmscan.c keeps track of how many of the * mem/swap backed and file backed pages are referenced. * The higher the rotated/scanned ratio, the more valuable * that cache is. * The anon LRU stats live in [0], file LRU stats in [1][file]++
Caller
NameDescribe
__activate_page
lru_deactivate_file_fnIf the page can not be invalidated, it is moved to the* inactive list to speed up its reclaim. It is moved to the* head of the list, rather than the tail, to give the flusher* threads some time to write it out, as this is much more
lru_deactivate_fn
lru_lazyfree_fn
lru_add_page_tailsed by __split_huge_page_refcount()
__pagevec_lru_add_fn