Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Generic routine for getting common part of quota file information

Proto:int dquot_get_state(struct super_block *sb, struct qc_state *state)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
struct qc_state *state
2765  dqopt = sb_dqopt(sb)
2768  memset(state, 0, size of state )
2769  When type < MAXQUOTAS cycle
2770  If Not sb_has_quota_active(sb, type) Then Continue
2772  tstate = Per quota type information + type
2773  mi = Information for each quota type + type
2774  Flags QCI_* = Quota accounting enabled
2775  spin_lock( & dq_data_lock)
2776  If DFQ_ flags [dq_data_lock] & Quota stored in a system file Then Flags QCI_* |= Quota file is hidden from userspace
2778  If DFQ_ flags [dq_data_lock] & Root squash enabled (for v1 quota format) Then Flags QCI_* |= Root squash turned on
2780  If sb_has_quota_limits_enabled(sb, type) Then Flags QCI_* |= Quota limits enforced
2782  Time after which space softlimit is* enforced = Space grace time [dq_data_lock]
2783  Ditto for inode softlimit = Inode grace time [dq_data_lock]
2784  If inodes of quotafiles [type] Then
2788  Number of extents in the file = 1
2789  spin_unlock( & dq_data_lock)
2791  Return 0