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:Write all dquot structures to quota files

Proto:int dquot_writeback_dquots(struct super_block *sb, int type)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
627  dqopt = sb_dqopt(sb)
629  ret = 0
631  WARN_ON_ONCE(!In all implementations count != 0 means locked )
633  When cnt < MAXQUOTAS cycle
634  If type != -1 && cnt != type Then Continue
636  If Not sb_has_quota_active(sb, cnt) Then Continue
638  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
640  list_replace_init( & List of dirty dquots [dq_list_lock] , & dirty)
650  dqgrab(dquot)
652  err = write_dquot(dquot)
653  If err Then
659  If Not ret Then ret = err
665  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
668  When cnt < MAXQUOTAS cycle If ( cnt == type || type == -1 ) && sb_has_quota_active(sb, cnt) && info_dirty( & Information for each quota type [cnt]) Then
671  write_info(sb, cnt)
672  dqstats_inc(DQST_SYNCS)
674  Return ret
Caller
NameDescribe
dquot_quota_syncWrite all dquot structures to disk and make them visible from userspace