Function report |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-28 20:32:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dquot_load_quota_sb
Proto:int dquot_load_quota_sb(struct super_block *sb, int type, int format_id, unsigned int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | |
| int | type | |
| int | format_id | |
| unsigned int | flags |
| 2335 | fmt = find_quota_format(format_id) |
| 2340 | BUG_ON(flags & DQUOT_SUSPENDED) |
| 2342 | If WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention) Then lease a read lock |
| 2347 | If (!quota_write || !quota_read || (type == lement used for project quotas && get_projid == NULL)) Then |
| 2358 | If Not (flags & DQUOT_USAGE_ENABLED) Then |
| 2367 | If Not ( Flags for diskquotas on this device & DQUOT_QUOTA_SYS_FILE) Then |
| 2379 | If Not check_quota_file(sb, type) Then Go to out_fmt |
| 2383 | dqi_format = fmt |
| 2386 | error = read_file_info(sb, type) |
| 2389 | If Flags for diskquotas on this device & DQUOT_QUOTA_SYS_FILE Then |
| 2390 | spin_lock( & dq_data_lock) |
| 2392 | spin_unlock( & dq_data_lock) |
| 2394 | spin_lock( & dq_state_lock) |
| 2396 | spin_unlock( & dq_state_lock) |
| 2402 | Return error |
| 2403 | out_fmt : |
| 2404 | put_quota_format(fmt) |
| 2406 | Return error |
| Name | Describe |
|---|---|
| dquot_load_quota_inode | More powerful function for turning on quotas on given quota inode allowing* setting of individual quota flags |
| dquot_resume | Reenable quotas on remount RW |
| 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 |