Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\list_lru.h Create Date:2022-07-28 05:42:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:list_lru_shrink_walk

Proto:static inline unsigned long list_lru_shrink_walk(struct list_lru *lru, struct shrink_control *sc, list_lru_walk_cb isolate, void *cb_arg)

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
struct shrink_control *sc
list_lru_walk_cbisolate
void *cb_arg
195  Return list_lru_walk_one(lru, current node being shrunk (for NUMA aware shrinkers) , current memcg being shrunk (for memcg aware shrinkers) , isolate, cb_arg, & How many objects scan_objects should scan and try to reclaim.* This is reset before every call, so it is safe for callees* to modify.)
Caller
NameDescribe
prune_dcache_sbprune_dcache_sb - shrink the dcache*@sb: superblock*@sc: shrink control, passed to list_lru_shrink_walk()* Attempt to shrink the superblock dcache LRU by @sc->nr_to_scan entries
prune_icache_sbWalk the superblock inode LRU for freeable inodes and attempt to free them.* This is called from the superblock shrinker function with a number of inodes* to trim from the LRU. Inodes to be freed are moved to a temporary list and