函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Work out how many page cache pages we can reclaim in this reclaim_mode

函数原型:static unsigned long node_pagecache_reclaimable(struct pglist_data *pgdat)

返回类型:unsigned long

参数:

类型参数名称
struct pglist_data *pgdat
4174  delta等于0
4182  如果Node reclaim mode* If non-zero call node_reclaim when the number of free pages falls below* the watermarks.按位与Unmap pages during reclaim nr_pagecache_reclaimable等于node_page_state(pgdat, NR_FILE_PAGES)
4184  否则nr_pagecache_reclaimable等于node_unmapped_file_pages(pgdat)
4188  如果非Node reclaim mode* If non-zero call node_reclaim when the number of free pages falls below* the watermarks.按位与Writeout pages during reclaim 的值则delta加等于node_page_state(pgdat, NR_FILE_DIRTY)
4192  如果此条件成立可能性小(为编译器优化)(delta > nr_pagecache_reclaimable)则delta等于nr_pagecache_reclaimable
4195  返回:nr_pagecache_reclaimabledelta
调用者
名称描述
__node_reclaimTry to free up some pages from this node through reclaim.
node_reclaim