Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-28 20:32:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dqcache_shrink_scan

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

Type:unsigned long

Parameter:

TypeParameterName
struct shrinker *shrink
struct shrink_control *sc
720  freed = 0
722  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
723  When Not list_empty - tests whether a list is empty*@head: the list to test. && nr_to_scan cycle
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  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
733  Return freed