函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:09:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Generic routine for getting common part of quota file information

函数原型:int dquot_get_state(struct super_block *sb, struct qc_state *state)

返回类型:int

参数:

类型参数名称
struct super_block *sb
struct qc_state *state
2765  dqopt等于sb_dqopt(sb)
2768  memset(state, 0, state的长度)
2769 type小于MAXQUOTAS循环
2770  如果非sb_has_quota_active(sb, type)则继续下一循环
2772  tstate等于 Per quota type information type
2773  mi等于 Information for each quota type type
2774  Flags QCI_* 等于Quota accounting enabled
2775  加自旋锁
2776  如果 DFQ_ flags [dq_data_lock] 按位与Quota stored in a system file Flags QCI_* 或等于Quota file is hidden from userspace
2778  如果 DFQ_ flags [dq_data_lock] 按位与Root squash enabled (for v1 quota format) Flags QCI_* 或等于Root squash turned on
2780  如果sb_has_quota_limits_enabled(sb, type)则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  如果 inodes of quotafiles [type]则
2788  Number of extents in the file 等于1
2789  自旋锁解锁
2791  返回:0