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:Call callback for every active dquot on given filesystem

Proto:int dquot_scan_active(struct super_block *sb, int (*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
int (*fn
unsigned longpriv
584  struct dquot * dquot, * old_dquot = NULL
585  ret = 0
587  WARN_ON_ONCE(!In all implementations count != 0 means locked )
589  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
591  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Continue
593  If superblock this applies to != sb Then Continue
596  atomic_inc( & Use count )
597  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
598  Put reference to dquot
599  old_dquot = dquot
605  End of list functions needing dq_list_lock
606  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
607  ret = fn(dquot, priv)
608  If ret < 0 Then Go to out
611  spin_lock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
615  spin_unlock( & There are five quota SMP locks:* * dq_list_lock protects all lists with quotas and quota formats)
616  out :
617  Put reference to dquot
618  Return ret