函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dqcache_shrink_scan

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

返回类型:unsigned long

参数:

类型参数名称
struct shrinker *shrink
struct shrink_control *sc
720  freed等于0
722  加自旋锁
723  当非链表为空nr_to_scan循环
724  dquot等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & free_dquots, structdquot, dq_free)
725  remove_dquot_hash(dquot)
726  remove_free_dquot(dquot)
727  remove_inuse(dquot)
728  do_destroy_dquot(dquot)
729  nr_to_scan自减
730  freed自加
732  自旋锁解锁
733  返回:freed