函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\list_lru.h Create Date:2022-07-27 06:43:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:list_lru_shrink_walk

函数原型:static inline unsigned long list_lru_shrink_walk(struct list_lru *lru, struct shrink_control *sc, list_lru_walk_cb isolate, void *cb_arg)

返回类型:unsigned long

参数:

类型参数名称
struct list_lru *lru
struct shrink_control *sc
list_lru_walk_cbisolate
void *cb_arg
195  返回: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.)
调用者
名称描述
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