Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:shrink_list

Proto:static unsigned long shrink_list(enum lru_list lru, unsigned long nr_to_scan, struct lruvec *lruvec, struct scan_control *sc)

Type:unsigned long

Parameter:

TypeParameterName
enum lru_listlru
unsigned longnr_to_scan
struct lruvec *lruvec
struct scan_control *sc
2170  If is_active_lru(lru) Then
2171  If may_deactivate & 1 << is_file_lru(lru) Then shrink_active_list(nr_to_scan, lruvec, sc, lru)
2173  Else skipped_deactivate = 1
2175  Return 0
2178  Return shrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages
Caller
NameDescribe
shrink_lruvec