函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:20
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:super_cache_count

函数原型:static unsigned long super_cache_count(struct shrinker *shrink, struct shrink_control *sc)

返回类型:unsigned long

参数:

类型参数名称
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  如果非s_flags按位与SB_BORN的值则返回:0
142  smp_rmb()
144  如果s_opnr_cached_objectstotal_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  如果非total_objects则返回:SHRINK_EMPTY
153  total_objects等于vfs_pressure_ratio(total_objects)
154  返回:total_objects