Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:20:15
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Work out how many page cache pages we can reclaim in this reclaim_mode

Proto:static unsigned long node_pagecache_reclaimable(struct pglist_data *pgdat)

Type:unsigned long

Parameter:

TypeParameterName
struct pglist_data *pgdat
4174  delta = 0
4182  If Node reclaim mode* If non-zero call node_reclaim when the number of free pages falls below* the watermarks. & Unmap pages during reclaim Then nr_pagecache_reclaimable = node_page_state(pgdat, NR_FILE_PAGES)
4184  Else nr_pagecache_reclaimable = node_unmapped_file_pages(pgdat)
4188  If Not (Node reclaim mode* If non-zero call node_reclaim when the number of free pages falls below* the watermarks. & Writeout pages during reclaim ) Then delta += node_page_state(pgdat, NR_FILE_DIRTY)
4192  If Value for the false possibility is greater at compile time(delta > nr_pagecache_reclaimable) Then delta = nr_pagecache_reclaimable
4195  Return nr_pagecache_reclaimable - delta
Caller
NameDescribe
__node_reclaimTry to free up some pages from this node through reclaim.
node_reclaim