Function report |
Source Code:fs\quota\quota_tree.c |
Create Date:2022-07-28 20:33:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:We don't have to be afraid of deadlocks as we never have quotas on quota* files...
Proto:int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot |
| 376 | sb = superblock this applies to |
| 384 | If Not Offset of dquot on disk [dq_lock, stable once set] Then |
| 386 | If ret < 0 Then |
| 393 | spin_lock( & Lock protecting dq_dqb changes ) |
| 394 | mem2disk_dqblk(ddquot, dquot) |
| 396 | ret = quota_write(sb, type, ddquot, Size of quota entry in quota file , Offset of dquot on disk [dq_lock, stable once set] ) |
| 398 | If ret != Size of quota entry in quota file Then |
| 399 | quota_error(sb, "dquota write failed") |
| 402 | Else |
| 403 | ret = 0 |
| 405 | dqstats_inc(DQST_WRITES) |
| 408 | Return ret |
| 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 |