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:Invalidate all dquots on the list

Proto:static void invalidate_dquots(struct super_block *sb, int type)

Type:void

Parameter:

TypeParameterName
struct super_block *sb
inttype
540  restart :
541  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
543  If superblock this applies to != sb Then Continue
545  If USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid) != type Then Continue
548  If atomic_read( & Use count ) Then
549  dqgrab(dquot)
550  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
559  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(dquot_ref_wq, atomic_read( & Use count ) == 1)
561  Put reference to dquot
565  Go to restart
571  remove_dquot_hash(dquot)
572  remove_free_dquot(dquot)
573  remove_inuse(dquot)
574  do_destroy_dquot(dquot)
576  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
Caller
NameDescribe
dquot_disableTurn quota off on a device. type == -1 ==> quotaoff for all types (umount)