Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-28 20:02:20
Last Modify:2022-05-24 06:42:17 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:super_cache_count

Proto:static unsigned long super_cache_count(struct shrinker *shrink, struct shrink_control *sc)

Type:unsigned long

Parameter:

TypeParameterName
struct shrinker *shrink
struct shrink_control *sc
122  total_objects = 0
124  sb = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(shrink, structsuper_block, s_shrink)
140  If Not (s_flags & SB_BORN) Then Return 0
142  smp_rmb()
144  If s_op && nr_cached_objects Then total_objects = nr_cached_objects(sb, sc)
147  total_objects += list_lru_shrink_count( & s_dentry_lru, sc)
148  total_objects += list_lru_shrink_count( & s_inode_lru, sc)
150  If Not total_objects Then Return SHRINK_EMPTY
153  total_objects = vfs_pressure_ratio(total_objects)
154  Return total_objects