Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct super_block * | sb | |
struct qc_state * | state |
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 |
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 |
2784 | If inodes of quotafiles [type] Then |
2788 | Number of extents in the file = 1 |
2789 | spin_unlock( & dq_data_lock) |
2791 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |