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_count

Proto:static inline unsigned long list_lru_shrink_count(struct list_lru *lru, struct shrink_control *sc)

Type:unsigned long

Parameter:

TypeParameterName
struct list_lru *lru
struct shrink_control *sc
123  Return list_lru_count_one(lru, current node being shrunk (for NUMA aware shrinkers) , current memcg being shrunk (for memcg aware shrinkers) )
Caller
NameDescribe
count_shadow_nodes
super_cache_scanOne thing we have to be careful of with a per-sb shrinker is that we don't* drop the last active reference to the superblock from within the shrinker.* If that happens we could trigger unregistering the shrinker from within the
super_cache_count