函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:update_page_reclaim_stat

函数原型:static void update_page_reclaim_stat(struct lruvec *lruvec, int file, int rotated)

返回类型:void

参数:

类型参数名称
struct lruvec *lruvec
intfile
introtated
268  reclaim_stat等于reclaim_stat
270  recent_scanned[file]自加
271  如果rotated* 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]自加
调用者
名称描述
__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